Create an audit on the company an answer request is about
Changed onCreates an audit as the answer to an AUDIT question, on the company the request is about. The target company comes from the request's onBehalfOfCompanyId and is not accepted in the body. Only the answering company may call it, and only while the brand that issued the request is still connected to it; anyone else gets 404 request_not_found. Unlike POST /api/audits, the audit is then shared with the subject company and with the brand without requiring the sharer to be linked to them — the request is the authorization — so the factory can finally see its own audit. Through the generic endpoint that share needed an answering-party-to-subject connection, which a delegated party never has, so it threw and was swallowed. isPublic is not accepted and is always false: a public audit fans a read grant out to every company linked to the uploader, which would expose the subject company's audit to the answering party's entire network. A failed share is reported, not logged and forgotten. A request whose questionnaire is archived is read-only and answers 409 questionnaire_archived.
Request
- Base URLhttps://api.retraced.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.retraced.com/api/questionnaires/requests/{requestId}/audits
- Authnone declared
Path parameters
Request body
Response
Default Response
Changes
- info
added the non-success response with the status
- info
- breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
request property
list-of-types was narrowed by removing typesnullfrom media typeapplication/json - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - warning
the
request property's maxLength was set to64 - warning
the
request property's maxLength was set to36 - warning
the
request property's maxLength was set to255 - warning
the
request property's maxLength was set to36 - warning
the
request property's maxLength was set to255 - warning
the
request property's maxLength was set to64 - warning
the
request property's maxLength was set to255 - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
response property
data/auditTypeIdlist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response201 - info
response property
data/companyIdlist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response201
- breaking