There are two request methods you can use to add and edit entities in the application: HTTP PUT and POST.
Use the POST method to add a new entity to the application. For example, you might use the POST method to add a customer contact to a business. Each POST will create another contact entity for the business.
Use the PUT method to update an existing entity in the application. For example, to update a customer contact entity with new information you would use the PUT method.
A successful call will return:
A HTTP status code of
A Location
response header param with the entity uri. Eg. For a contact entity
Header | Value |
---|---|
Location: | {domain}/businesses/{business_uid}/contacts/{contact_uid} |
If you want to:
For example, to create or update a contact:
Copyright © 2020 MYOB Technology Pty Ltd