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 |
/accountright/{cf_uri}/Contact/Customer | |||
No UID | Insert | Insert | |
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:
"Errors": [
{
"Name": "UidInPostRoute",
"Message": "A request should not contain UID in the route during POST operation",
"AdditionalDetails": "",
"ErrorCode": 174,
"Severity": "Error",
"LearnMore": null
}
]
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.
Comments
0 comments
Article is closed for comments.