- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 01:46 PM
Hi,
How do I submit a request for a catalog item via REST? Here's why I tried:
$> curl -v -u 'snowid:snowpass' --header "Content-Type: application/json" --request POST --data-binary @Internal-SSL-Certificate-Request.json https://company.service-now.com/api/sn_sc/servicecatalog/items/cdf6d374c3d0fd90cc253bee05013113/submit_producer
That yields:
{"error":{"message":"Record Producer does not exists","detail":""},"status":"failure"}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 10:48 AM
That endpoint works fine with a GET, both with the GUI and curl. That's how I know my credentials are okay.
The issue turns out to be that I should be using a different endpoint than the docs and GUI suggest. For the record, this is how to order a catalog item with curl:
curl -v -u 'id:pass' --header "Content-Type: application/json" --request POST --data-binary @Internal-SSL-Certificate-Request.json
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 02:46 PM
@snowblind : Below is the HI article that explains the steps in detail for this use case.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0686272
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 03:16 PM
Those are the steps I followed. That didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 03:29 PM
@snowblind : Please make sure that the sys_id is correct and the service account you are using has sufficient privileges to take the action. Try to see if it works for any other catalog (just to test API call)
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 02:48 PM
Hi @snowblind ,
Please try this link
Also make sure u have provided correct sys I'd of the record producer/catalog item
Thanks,
Danish