- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 02:33 AM
I wanted to create scripted GET API which will have a JSON in request body.
I tried creating GET API however I found that I can pass data only through query parameters.
Example API:
GET "API Path"
Request Body:
{
incidentNumner: "12345"
createdBy: "admin"
State: "New"
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 09:01 PM
Hi Sameer,
I don't think you can send JSON object as request body for GET method. In case if you have a lengthy request body for your GET method then you may use POST method in the scripted REST API to send request and retrieve the information.
Mark Correct if this solves your issue. Hit Like/Helpful based on the impact.
Regards,
Udhay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2018 09:01 PM
Hi Sameer,
I don't think you can send JSON object as request body for GET method. In case if you have a lengthy request body for your GET method then you may use POST method in the scripted REST API to send request and retrieve the information.
Mark Correct if this solves your issue. Hit Like/Helpful based on the impact.
Regards,
Udhay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2023 04:22 AM
Can someone provide example to how send multiple incident numbers in POST request body as JSON.