Attachments

Create a new Attachment

Record UUID

UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the x-record-uuid response header.

post/attachment.json

Request body

uuidstring uuid

Unique identifier for this record

active0 | 1

Record active/deleted flag. Valid values are [0,1]

edit_datestring

Timestamp at which record was last modified

related_objectstring
related_object_uuidstring uuid
attachment_namestring

The security roles description

file_typestring

Location's name

created_by_staff_uuidstring uuid
timestampstring
attachment_sourcestring
tagsstring
lngnumber float
latnumber float
photo_widthstring
photo_heightstring
extracted_infostring
is_favouritestring
class_namestring
metadatastring

Example request

{
  "uuid": "123e4567-717e-4b4b-9edc-230b73c6afcb",
  "edit_date": "2025-07-01 12:00:00",
  "related_object_uuid": "123e4567-017a-4778-9b11-230b78ecb82b",
  "created_by_staff_uuid": "123e4567-bbc1-4df5-b8ad-230b788a33db"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes