How to validate mandatory variables through REST API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2025 02:18 AM
Hi All,
I am trying to submit a catalog item and using Service Catalog REST API (OOTB). I want to check validation for mandatory variables. I am passing the below parameters with one mandatory variable value as empty but still it is creating REQ. It should not create a REQ and show an error message 'Mandatory Variables are required'
How do I fix this issue so that it will through Mandatory variables check error?
Please help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hope you are doing good.
Did my reply answer your question?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
