Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
May 2021 - last edited May 2021
May 2021 - last edited May 2021
Hi guys,
I am making API call to update the contact with JSON below:
{ "UID": "5f81f864-bd3a-4086-9f75-c728f194119d", "LastName": "Quyet", "FirstName": "Michael", "IsIndividual" : true, "Addresses": [ { "Location": 1, "Street": "27a Commercial Rd", "City": "Newstead", "State": "Qld", "PostCode": "4006", "Phone1": "0411414414", "Email": "help@thecatalysisgroup.com.au", "Website": "www.thecatalysisgroup.com.au", "ContactName": "Michael Quyet" } ], "SellingDetails": { "ABN" : "", "TaxCode": { "UID": "3bd2fbea-54d7-4115-8030-b84360048465" }, "FreightTaxCode": { "UID": "3bd2fbea-54d7-4115-8030-b84360048465" } }, "RowVersion": "5083169798557270016" }
API call: [PUT] https://ar1.api.myob.com/accountright/c06778dd-4371-4a83-975f-522df65d7574/Contact/Customer/5f81f864...
Yes, it will update the fields I listed on JSON. However, other fields that are not listed in the JSON, will be overwritten as empty. How can I update only the fields I listed in JSON above and keep other fields as original data?
Thanks in advance.
Micheal
Solved! Go to Solution.
May 2021
May 2021
Hi @Micheal2,
Thank you for reaching out, We would need to include the full body in the PUT request even if we are not updating all the fields. This will stop those fields from being removed.
Thanks,
Thanks,
@Hannah_B
MYOB API Specialist
MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's
Did my answer help?
Mark it as a Solution
by
AL6
a month ago
1
165
|
1
|
165
|
||
1
|
659
|
|||
4
|
497
|
|||
by
PriyaSelvaraj
October
73
3686
|
73
|
3686
|
||
4
|
722
|