PUT requests error - Method must be one of

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
jmc2408
Posts: 86
Joined: Thu Jul 09, 2020 3:41 pm
Location: Glasgow, Scotland
Contact:

PUT requests error - Method must be one of

Post by jmc2408 » Mon Apr 08, 2024 4:44 pm

Hi,

Trying to the run the PUT requests against a cost centre catalog item within a Job.
Trying to change the item.

Accordingly to the documentation this suggests it is possible
https://developer.simprogroup.com/apido ... 72a6811081

However whenever i run this on my simpro build i get the error:

Code: Select all

{
    "errors": [
        {
            "path": null,
            "message": "Method must be one of: GET, PATCH, DELETE, OPTIONS.",
            "value": null
        }
    ]
}
What is the earliest version of simPRO this would be allowed?

Thanks
dan.zhang
Posts: 10
Joined: Fri Mar 01, 2024 4:20 am

Re: PUT requests error - Method must be one of

Post by dan.zhang » Mon Apr 08, 2024 10:39 pm

Hey ,
Which version are you on currently? This method should be available since years ago.

Regards
Dan
API Developer | Simpro Software Group
jmc2408
Posts: 86
Joined: Thu Jul 09, 2020 3:41 pm
Location: Glasgow, Scotland
Contact:

Re: PUT requests error - Method must be one of

Post by jmc2408 » Sun Apr 14, 2024 6:16 pm

Build: 23.4.4.0.4.0
AidenTew
Posts: 25
Joined: Fri Mar 01, 2024 4:15 am

Re: PUT requests error - Method must be one of

Post by AidenTew » Mon Apr 15, 2024 12:19 am

Hi jmc2408,

Can you PM me the Simpro build you're using?

As well as the endpoint and body you are using to help us investigate why you would be experiencing this.

Thanks
Aiden
API Developer | Simpro Software Group
Post Reply