Discussions

Ask a Question
Back to All

Adding an attachment via the API

Hi there,

I am following the instructions here: https://developer.servicem8.com/v1.0/docs/attaching-files-to-a-job-diary to attach an image file to a job.

I am up to step 3 and I am even getting a 200 response code on this call and in ServiceM8 in the job file I can see the image is being attached/created which is great but the image itself is blank?

In the file parameter of the POST request in step 3 I am just using a standard public URL like this one for example:
https://www.unitedrentals.com/sites/default/files/safety_training/safety-training_jobsite.jpg

Is there something I am missing? Thanks,