Adds one or more attachments to the attachment store. The request should have a content type of multipart/form-data and include one or more files.
The response contains a list of objects containing the uploaded filename and the generated attachmentId. This attachmentId should be used in a subsequent
POST to either the /incidents
or /events
endpoint. Attachments will be automatically deleted if not linked to a record within 20 minutes.
https://api.claimsmanagertest.crawco.co.uk/attachments
curl --location --request POST 'https://api.claimsmanagertest.crawco.co.uk/attachments' \
--header 'Authorization: Bearer {access token}' \
--form '=@"/C:/Attachments/file1.jpg"' \
--form '=@"/C:/Attachments/file2.jpg"' \
--form '=@"/C:/Attachments/file3.pdf"'
Parameter Name | Description | Type | Example Data |
---|---|---|---|
filename
|
The filename of the uploaded attachment | string | file1.jpg |
attachmentId
|
The generated unique identifier to be used in further calls | string ($uuid) | ee0ee1de-0d6c-4d8b-aa24-fc1e466afadd |
[
{
"filename": "file1.jpg",
"attachmentId": "ee0ee1de-0d6c-4d8b-aa24-fc1e466afadd"
},
{
"filename": "file2.jpg",
"attachmentId": "af5bc47d-5aa2-42dc-b8b6-7d2362396e31"
},
{
"filename": "file3.pdf",
"attachmentId": "ad77ad5b-38aa-4c01-9be1-7612cbd6696e"
}
]