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

Hi,



it's the same for me. If I create a new account and add it to the rest_service role I'm able to create incidents with 201 OK BUT I get no response back. If I log in as admin I will get response. What role or what is needed to make the response work?



Regards


Simon


tony_barratt
ServiceNow Employee
ServiceNow Employee

Hi Brad,



You mention "from reading the wiki I just need to authenticate as a user with the rest_service role".



The section on Security below   seems to imply that the user also needs same privileges that an interactive user would need when logged in to create records.


Which is correct I think.



It could be that this info could usefully be more prominent.


Would you agree with that? Or am I looking at a different wiki articles than you?



I do see from wiki



REST API - ServiceNow Wiki


Screen Shot 2015-04-28 at 9.23.59 PM.JPG


REST API - ServiceNow Wiki


Screen Shot 2015-04-28 at 9.24.58 PM.JPG


Best Regards



Tony


tony_barratt
ServiceNow Employee
ServiceNow Employee

Hi Brad,


It might be worth mentioning, that marking replies as helpful, as appropriate, is also generally beneficial.


🙂


Best Regards



Tony