Create a certificate on the company an answer request is about
Changed onCreates a certificate as the answer to a CERTIFICATE question, on the company the request is about. The target company comes from the request's onBehalfOfCompanyId and is deliberately 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. Replaces POST /v3/claims for this flow, which inserted the claim and copied its file into private storage and then read the row back through a network-scoped query — so a delegated answering party got a 404 after the write, leaving a claim no read path can see, and a duplicate check scoped to the caller that could not find it, so every retry wrote another. Here the read-back is unscoped and the duplicate check is scoped to the company the certificate is actually filed on. The certificate is created in REQUESTED state; status is not client-settable. Required and optional fields mirror POST /api/claims, so only the standard and the two dates are required; a file is optional and, when given, must belong to the caller. A standardId that names no standard or certification answers 400 invalid_standard_id and writes nothing. Responds 201. 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}/certificates
- Authnone declared
Path parameters
Request body
Response
Default Response
Changes
- 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 response property
/became nullable for the status - breaking
the response property
/became nullable for the status - 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 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
response property
data/companyIdlist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response201 - info
response property
data/standardIdlist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response201
- breaking
- info
endpoint added
- info