A person can have documents stored against their record. These end points allow person documents to be retrieved and added to a person record
Get a Document by ID
Document Response
Bad Request
Unauthorized - Authorization Required
Not Found
Unprocessable Entity
General Error
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "document",
- "attributes": {
- "fileName": "test.pdf",
- "base64Contents": "AQ=="
}, - "relationships": {
- "person": {
}
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}
Add a Document to a Person
Document to be added
object |
Document Response
Bad Request
Unauthorized - Authorization Required
Unprocessable Entity
General Error
{- "data": {
- "type": "Document",
- "attributes": {
- "fileName": "test.pdf",
- "base64Contents": "AQ=="
}, - "relationships": {
- "0": null,
- "person": {
- "data": {
- "id": "285f0a36-9ff3-4399-a47a-80e9bce56921",
- "type": "people"
}
}
}
}
}
{- "data": {
- "0": {
- "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}, - "type": "document",
- "attributes": {
- "fileName": "test.pdf",
- "base64Contents": "AQ=="
}, - "relationships": {
- "person": {
}
}, - "id": "a0bc1ba8-063e-c1fd-3e8f-6b5951f33e03"
}
}