Create Account for setup API.

Kevin Kwong
Giga Contributor

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

1 REPLY 1

ChrisBurks
Mega Sage

@Kevin Kwong 

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

 

rest_api_explorer.png