i
PUT/PATCH Method
PUT and PATCH methods are used to update a resource. The difference between them is that the PUT method impacts all the attributes of the resource and the PATCH method impacts one or more of those attributes.
•They use the HTTP PUT and PATCH verbs respectively.
•The url contains the collection name and id of the resource to be updated.
•The new values of the resource attributes are specified in the request body, that is, the configuration declares a "body" clause.
In the PUT method, all the values for all resource attributes must be specified. On the other hand, in the PATCH method, only the values of the attributes that are to be updated must be specified.
•There is no response body.
•The modification date (dtLastUpdate) obtained with a query (GET) to the corresponding instance prior to making the modification must be specified.
Example: Instance update with Id = 93 from the "Account" form.
PUT /forms/CRM_ACCOUNT/instances/93
The request body ("body" clause) contains:
|
PATCH /forms/CRMACCOUNT/instances/93
The request body ("body" clause) contains:
|