Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting permission denied when trying to update record , REST API

mohammedsaneenA
Contributor III

Hi ,

 

I am Getting permission denied error when trying to use put method on REST API to update record. Any tips on this

15 REPLIES 15

Hi David,

This is what the error says : 403 (Forbidden)

The url seems to be fine , I gave : Where base url is replaced by instance url

baseurl/api/core/content/

Do you have Anonymous Authentication ON for the api nodes in IIS?

Typically the 403 is that your using a POST instead of a PUT for updating the record but that doesn't seem to be the case.

 

I'm assuming that your passing the record Id to the API call?

 

Can you post the data your sending to the APIs?  I typically build an array for the data that will be sent and then for the data attribute I use JSON.stringify(dataVariable)

 Advisory Consultant

Hi olya, Yes I do

I would say as David then. Try to use POST instead of PUT.

AndyMiscuk1
Contributor III

Mohammed,

Did you solve your issue?

If so, what was it?

Andy