Search This Blog

Wednesday, April 19, 2017

Error occur on update using CRM web API: The requested resource does not support http method_other (405 method not allowed )

Error occur on update using CRM web API: The requested resource does not support http method_other (405 method not allowed )

When i update the single property using patch on CRM web API. The above error so I use put to update the singe property.

E.g:

var objSalesOrder= new Object();
objSalesOrder.customerRequest=true;


When i update the sales order using patch the above error occured.

Update a single property value
If you want to update a single property then use the HTTP PUT verb. And append the property name with the Url

Request

PUT [organization URI]/api/data/v8.0/accounts(00000000-0000-0000-0000-000000000001)/name HTTP/1.1
Content-Type: application/json
OData-MaxVersion: 4.0
OData-Version: 4.0
{"value": "Updated Sample Account Name"}

Response

HTTP/1.1 204 No Content
OData-Version: 4.0

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.