SAP Knowledge Base Article - Public

3089474 - Error: 'The specified HTTP method is not allowed for the resource identified by the Data Service Request URI' for OData Request with Patch Put or Delete Method

Symptom

You are trying to execute an OData call for a collection with e.g. Delete method, but it fails with the following error message:

'The specified HTTP method is not allowed for the resource identified by the Data Service Request URI'

A Get request of the same URL can be performed successfully.

Environment

SAP Cloud for Customer

Cause

Patch Put or Delete methods needs the key also in URL

Resolution

Instead of e.g.:

https://myXXXXX.crm.ondemand.com/sap/c4c/odata/.............Collection

use e.g.:

https://myXXXXX.crm.ondemand.com/sap/c4c/odata/.............Collection('<ObjectID>')

Keywords

not working unable able , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications 2108