Consent Attachments
Upload Consent Attachment
Use this API to upload and store files which contain written consent of data subjects' transactions.
🗒 Things to Know
The size of uploaded files must be less than 4MB.
The following file formats are allowed: .pdf, .jpeg, .jpg, and .png.
The RefID parameter returned within the response body can be used to attach file references to incoming data subject consents using the Create Consent Receipts API.
File references can be attached to a given data subject or data subject purpose by using the attachments or PurposeAttachments parameters in the Create Consent Receipts API respectively.
post/rest/api/preferences/v1/attachments
Response
File uploaded successfully.
Example response
{
"refId": "550e8400-e29b-41d4-a716-446655440000",
"filename": "consent_form.pdf",
"fileSize": 1024,
"contentType": "application/pdf",
"qualifiedName": "tenant123/attachments/consent_form.pdf"
}