Rest API to fetch details of uploaded update sets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2022 07:54 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2022 08:09 AM - edited ‎11-04-2022 08:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2022 11:17 PM
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?