If you are developing a client that requires modifying data (create, update, and delete operations), the Smart API you call must support the same operations. You must be aware of API calling conventions to perform these operations.
The OData specification includes a Capabilities vocabulary that includes Data Modification Capabilities to denote any restrictions on insert, update, and delete operations. You can check a Smart API's Annotations metadata document to check for any of these restrictions.
The following lists the HTTP actions you can use to modify entity instances:
-
Create - POST
-
Update - PUT, MERGE, PATCH
-
Delete - DELETE
-
Create relationship - POST, PUT
-
Delete relationship - DELETE
The following topics provide details for calling an API to modify data.