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"
Stuck on adding an attachment to a job
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.
Re: Stuck on adding an attachment to a job
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
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
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
I am suddenly getting 404 not found error in the upload API. Is anything changed?
Uploads have been working well until last week.
Uploads have been working well until last week.
Re: Stuck on adding an attachment to a job
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.
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
API Developer | simPRO Software Group
DEVELOPER CENTER