Having an issue with REST API Explorer using PATCH method on CMDB Instance API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2025 06:14 AM
Hi,
I am trying to test and use the CMDB Instance API, but I faced an issue with PATH Method.
In REST API Explorer,when I want to change the value of "ram" for any class and specific CI using the SYS ID, I receive the 500 Internal Error message. I tested with PDI and other instances and the issue persists.
it says the attributes is null, how can I address the issue in the REST API explorer?
{
"error": {
"message": "Exception while executing request: Cannot invoke \"java.util.Map.put(Object, Object)\" because \"attributes\" is null",
"detail": "Cannot invoke \"java.util.Map.put(Object, Object)\" because \"attributes\" is null Check logs for error trace or enable glide.rest.debug property to verify REST request processing"
},
"status": "failure"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2025 06:42 PM
Take for example below CI
If you want to update RAM using PATCH method, pass the payload as below
https://<instance>.service-now.com/api/now/table/<ci_class>/<sys_id>
Payload
{
"ram": "2048"
}If you want to pass multiple attributes, logic is same
I hope you appreciate the efforts to provide you with detailed information. As per community guidelines, you can accept more than one answer as accepted solution. If my response helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2025 11:53 PM
Did you get a chance to review this as I believe the information provided should answer your question.
If my response helped to guide you or answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2025 05:42 AM
Hi @Bhuvan ,
as I mentioned in my question, I wantted to use CMDB Instance API, instead of Table API.
I did not have an issue with Table API, PATCH method; my challenge was the CMDB Instance API.
Thank you anyway for providing information. much appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2025 06:52 AM
Try below for CMDB Instance API
For multiple attributes update,
I hope you appreciate the efforts to provide you with detailed information. If my response helped to guide you or answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2025 08:13 AM
