Create Account for setup API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 06:04 PM
Hi Team,
what kind of access/role we need to connect ServiceNow api. for example, to use the below url which kind of access/role we need to get.
GET https://instance.service-now.com/api/now/table
PUT https://instance.service-now.com/api/now/table/{tableName}/{sys_id}
we try to add role "admin", "security_admin" but test return error code : 400 Bad Request.
may i know how to setup?
Thanks
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 06:34 AM
From your postman screenshots looks like "table" is being left out.
For example in the screenshots the urls are
.....service-now.com/api/now/account
.....service-now.com/api/now/customer_account
If account and customer_account are the names of your table then the correct url should be
.....service-now.com/api/now/table/account
......service-now.com/api/now/table/customer_account
And if you are trying to retrieve one record from a table then the sys_id of a record at the end
......service-now.com/api/now/table/account/c5cdfef387943910f5047515dabb3549
ServiceNow has a Rest API Explorer that walks through the setup of something similar to postman