Discussions

Ask a Question
Back to All

Attaching files via the API

In the developer docs (https://developer.servicem8.com/docs/attaching-files-to-a-job-diary) for adding attachments to jobs via the API, should the endpoint for submitting the attachment data be POST https://api.servicem8.com/api_1.0/Attachment/2404fbd2-cff6-4222-86b4-54a6ea4dbb8b.json instead of POST https://api.servicem8.com/api_1.0/Attachment/2404fbd2-cff6-4222-86b4-54a6ea4dbb8b.file ? (IE .json instead of .file)

The docs for attaching files indicate it should be .json -> https://developer.servicem8.com/reference/post-attachment-single

Thanks
Hamish