Create a Generated Document for a Participant
post
/public/v1/participants/{participant}/generated-documentsPass either template.id, to generate the document from one of the provider's participant
document templates, or content, to write the document's rich text (HTML) directly. Sending
both, or neither, is rejected. A document generated from a Word template is finalised straight
away; any other document is created as a draft.
participantstringrequiredThe participant UUID
Body
application/jsonnamestringrequiredmax length 255templateobject▶Show 1 child attributesHide child attributes
idstring
contentstringmax length 16777215Limited to 16777215 bytes.
Response
201application/jsonGeneratedDocumentResource
dataobjectrequired▶Show 9 child attributesHide child attributes
idstringrequiredExample:g1e2n3d4-a5b6-47c8-9d0e-1f2a3b4c5d6enamestringrequiredExample:Support Plan - Jane Citizenstatusenum<string>requiredAvailable options:draftfinalisedtypeenum<string>requiredAvailable options:rich_textwordtemplate_namestring | nullrequiredExample:Support Plancontentstring | nullrequiredExample:<p>Jane's goals for the next 12 months.</p>finalised_atstring | nullrequiredExample:2024-01-16T09:00:00+00:00created_atstringrequiredExample:2024-01-15T10:30:00+00:00updated_atstringrequiredExample:2024-01-15T11:05:00+00:00
401Unauthenticated403Authorization error404Not found422Validation error