Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
You are right PATCH is a great method for partial updates of records - however MYOBapi does not support this.
Unfortunately you do need to GET the full record & PUT the change back.
The API will check for RowVersion to ensure your data doesn't clash when pushed back as MYOB products are multi-user and so we need to check some one or something else hasn't edited that item while you've been making changes
Hope that helps
I would like to be able to update a field within a record without first using GET to get the entire record, then editing the JSON string then using PUT to replace the whole record. I've found info on the PATCH method, but this doesn't seem to be supported by MYOB API(please correct me if I'm wrong). I've also found examples online where you can expose the field within a record and use PUT to replace only that field... But I can't get it to work - error 404
is this, or should this be possible? Or do I need to work with the entire record when using PUT?
Solved! Go to Solution.