Page 1 of 1

Stuck on adding an attachment to a job

Posted: Thu Jan 30, 2020 7:21 am
by peterb
Hi all

Im having a bunch of problems getting the api to permit the upload of an attachment to a job. Ive got the full POST set up in Postman but I am constantly getting a 400 Bad Request send back. I am pretty sure it something very obvious, I just cant see it. Any able to help?

Here is the full POST:

https://hedgehogcyber.simprosuite.com/a ... YKJSVFT0YK"

Re: Stuck on adding an attachment to a job

Posted: Fri Jan 31, 2020 2:48 am
by Muqeet
Instead of passing all the fields through query parameters, pass them through request body and post it to your URL. Hello World pdf will get uploaded successfully.

https://{Build_URL}/api/v1.0/companies/{companyID}/jobs/{jobID}/attachments/files/

Follow the documentation link below.
http://developer.simprogroup.com/apidoc ... 6ee72946b0

Re: Stuck on adding an attachment to a job

Posted: Thu Apr 02, 2020 6:58 am
by Crennotech
I am suddenly getting 404 not found error in the upload API. Is anything changed?
Uploads have been working well until last week.

Re: Stuck on adding an attachment to a job

Posted: Fri Apr 03, 2020 4:24 am
by Muqeet
Hello,

We have not received any issues with attachments, however please PM me your build URL and the API endpoint you are using to upload an attachment. I will check that out for you.

Thanks.