Adding an attachment via the API

Originally posted by Martin Gibson

Hi there,

I am following the instructions here: 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:

Is there something I am missing? Thanks,