The CreatorCon Call for Content is officially open! Get started here.

REST API (Table API) actions returning 200 but not taking

bscharm
Kilo Explorer

I am authenticating as a user with the rest_service role and using the Table API, but all actions I am taking (specifically POST and PATCH) are not updating any data. I receive a 200 response back but none of the fields are actually changed. On a post I just get back an empty representation of the object (have tried this on sys_user, core_company, incident...)   and none of the data I have POSTed is being reflected. Am I missing some configuration? From reading the wiki I just need to authenticate as a user with the rest_service role.

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Brad,



Try to also give role "ITIL" to the user and check if this resolves your issue.


View solution in original post

7 REPLIES 7

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Brad,



Try to also give role "ITIL" to the user and check if this resolves your issue.


This worked, thank you Pradeep.


Hi Brad,



Perfect


Would you mind marking my answer as correct if this resolves your issue.


Dan Bruhn..Can you please convert this thread as a question too.


Mike Allen
Mega Sage

Interesting, our consumers have both SOAP and REST roles (in fact, here are the roles I give them):



Capture.PNG



and they are able to insert into the incident table using REST, and I get a 201 Created, but I get no response message.   If I submit with my admin account, I get a response.