Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Rest API to fetch details of uploaded update sets

Ayush Thakur1
Tera Contributor

Hi everyone, I am working on some integrations with ServiceNow. I have a requirement in which I need to check if there is an update set uploaded in the ServiceNow instance. I want to know if a Rest API is available to fetch details of already uploaded update sets or check whether a specific update set is present in our ServiceNow instance.

2 REPLIES 2

Mike_R
Kilo Patron
Kilo Patron

You could try a GET

https://instance_name.service-now.com/api/now/table/sys_update_set 

 

 

Documentation here

https://developer.servicenow.com/dev.do#!/reference/api/tokyo/rest/c_TableAPI

This API works fine for admin. But if a normal user (who is not an admin) sends a request we get 403 forbidden status code and response as:

 

 

{
    "error": {
        "message": "User Not Authorized",
        "detail": "User is unauthorized to access table: sys_update_set"
    },
    "status": "failure"
}

 

 

Is there any other way to fulfill this request from a normal user or any other API from which we can get details?