debby12
13 years agoNew Contributor
JSON Body in REST Post method
Hi,
I'm trying to create a REST Request for a POST Method, using JSON data in the body.
Few Questions:
Should I configure the JSON parameters in Method Parameters? Or should I place the whole JSON text in the body?
Currently I'm placing the whole JSON Content in the body, and checking in the PostQueryString Checkbox.
Please see the following JSON used:
{
"FieldType":string,
"Operator":EQ,
"Field":status,
"Value":effective
}
Any idea what can be wrong in what I'm doing?
Currently I'm getting error code 401, (there is no problem with session id in the header, I'm using the same session id transfer in Get Calls and it works successfully.
Any idea and additional information can be very helpful.
Thanks!
I'm trying to create a REST Request for a POST Method, using JSON data in the body.
Few Questions:
Should I configure the JSON parameters in Method Parameters? Or should I place the whole JSON text in the body?
Currently I'm placing the whole JSON Content in the body, and checking in the PostQueryString Checkbox.
Please see the following JSON used:
{
"FieldType":string,
"Operator":EQ,
"Field":status,
"Value":effective
}
Any idea what can be wrong in what I'm doing?
Currently I'm getting error code 401, (there is no problem with session id in the header, I'm using the same session id transfer in Get Calls and it works successfully.
Any idea and additional information can be very helpful.
Thanks!