on 09-26-2018 5:53 PM
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.
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')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.