Create a attachment
Body·
required
application/json
Fields accepted when creating a attachment. Unknown or read-only fields are rejected.
- Type: string | nulllabelrequired
- Type: string | nullFormat: uriurlrequired
Where the file lives.
- Type: string | nullcontent
_type e.g. application/pdf, image/jpeg.
- Type: string | nullentity
The table of the record it is attached to, e.g. equipment or gigs.
- Type: string | nullnotes
- Type: string | nullrecord
_id The id of the record it is attached to.
- Type: number | nullsize
_bytes
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/attachments
curl https://api.weddingoperatingsystems.com/api/v1/attachments \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"label": null,
"entity": null,
"record_id": null,
"url": null,
"content_type": null,
"size_bytes": null,
"notes": null
}'
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"label": null,
"entity": null,
"record_id": null,
"url": null,
"content_type": null,
"size_bytes": null,
"notes": null,
"created_time": "2026-10-05T21:22:26.970Z",
"last_edited_time": "2026-10-05T21:22:26.970Z"
}
}