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-3efa-4c84-837e-230c4f424cbb",
  "edit_date": "2025-07-01 12:00:00",
  "related_object_uuid": "123e4567-576e-466f-b726-230c406008fb",
  "created_by_staff_uuid": "123e4567-2fa7-409f-a967-230c436ddd0b"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes