Attachments

List All Attachments


GET http://api.servicem8.com/api_1.0/Attachment.json

Response

Status: 200

[[{"uuid":"...",
"active":"...",
"related_object":"...",
"related_object_uuid":"...",
"attachment_name":"...",
"file_type":"...",
"created_by_staff_uuid":"...",
"timestamp":"...",
"attachment_source":"..."},
{"uuid":"...",
"active":"...",
"related_object":"...",
"related_object_uuid":"...",
"attachment_name":"...",
"file_type":"...",
"created_by_staff_uuid":"...",
"timestamp":"...",
"attachment_source":"..."}]]

Show a Attachment


GET http://api.servicem8.com/api_1.0/Attachment/{UUID}.json
Returns a single Attachment.

Response

Status: 200

[{"uuid":"...",
"active":"...",
"related_object":"...",
"related_object_uuid":"...",
"attachment_name":"...",
"file_type":"...",
"created_by_staff_uuid":"...",
"timestamp":"...",
"attachment_source":"..."}]

Create a Attachment


POST http://api.servicem8.com/api_1.0/Attachment.json
Creates a new Attachment.

Request

{"related_object":"New Data Here"}

Response

Status: 200

Update a Attachment


POST http://api.servicem8.com/api_1.0/Attachment/{UUID}.json
Updates an existing Attachment with new details from the submitted JSON.

Request

{"related_object":"Updated Data Here"}

Response

Status: 200

Destroy a Attachment


DELETE http://api.servicem8.com/api_1.0/Attachment/{UUID}.json
Deactivate the Attachment at the referenced URL.

Response

Status: 200