Stuck on adding an attachment to a job

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
peterb
Posts: 1
Joined: Thu Jan 30, 2020 7:17 am

Stuck on adding an attachment to a job

Post by peterb » Thu Jan 30, 2020 7:21 am

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"
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Stuck on adding an attachment to a job

Post by Muqeet » Fri Jan 31, 2020 2:48 am

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
Muqeet
API Developer | simPRO Software Group
Crennotech
Posts: 5
Joined: Thu Sep 27, 2018 11:24 am

Re: Stuck on adding an attachment to a job

Post by Crennotech » Thu Apr 02, 2020 6:58 am

I am suddenly getting 404 not found error in the upload API. Is anything changed?
Uploads have been working well until last week.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: Stuck on adding an attachment to a job

Post by Muqeet » Fri Apr 03, 2020 4:24 am

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.
Muqeet
API Developer | simPRO Software Group
Post Reply