Getting a 401 from the API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 12:32 PM - edited 04-21-2025 01:21 PM
I'm getting a 401 from the API when asking for table/cmdb_rel_type.. or cmdb_type_rel but can query table/cmdb_rel_ci..or cmdb_ci_rel
What am I doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 08:23 PM
Hi @HFawzy
Could you share the request payload and API details? A 401 error is related to authentication issues. However, you mentioned that it works when you query the cmdb_rel_ci table. That's strange.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 08:56 PM
if it's 401 then it should always give error irrespective of the table you are using
share some screenshots what API it is and how is the payload etc?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader