With the release of AccountRight 2022.8, We have introduced a change of behavior in regards of POST requests.
The changes are outlined in the table below using the Customer Endpoint as an example:
|Endpoint||UID in payload||Current Behavior||New Behavior|
|Unknown UID||Insert||Return 400 (Bad Request)|
|Known UID||Update||Return 400 (Bad Request)|
This change will be introduced across all endpoints in MYOB Business API. If you need to update a record via the API, you will need to use a PUT request.
This change will result in the following error being returned if the request is not in the format that the API expects:
"Message": "A request should not contain ID in the route during POST operation",
Here is a link to our article that explains what not to do when POSTing
If you have any questions, feel free to log a ticket with the Customisation & Integration Team.