cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to update an existing product record using OData

0 Kudos

Hi experts,

I have been trying to update an existing product record using C4C ODataAPI. But it is throwing error saying : The specified HTTP method is not allowed for the resource identified by the Data Service Request URI. Can any one help me with this issue please? When I checked the metadata definition, the respective Entity set "Updatability" is set to true.

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

How does your URL look like ?

This kind of error typically occurs when you use some kine of REST Client.

When you for example read a ressource

<base URL>/entityset('key') 

and take this as an Input for a create, switch from GET to POST for the http method but forget to change the URL you will get a similar response because a POST is only allowed on the entity set

<base URL>/entityset 

not a single Entity.

<base URL>/entityset('key')

former_member707752
Discoverer

Thank you very much Andre Fisher I was struggling with this error and your solution solved my problem,

Generally we forget to change the URI name to remove key we have gieven in the braces <base URL>/entity set('key') which is wrong to call the method we should call the URI with out any key(<base URL>/entity set
while we are posting.

Answers (0)