I'm using a PS script to try and create an incident request in our SDPlusOnDemand Cloud site. I keep getting a 400 (BAD REQUEST) and can't seem to find the issue.
{
"Error": {
"ErrorMessage": "The remote server returned an error: (400) Bad Request.",
"StatusCode": 400,
"Response": ""
},
"Headers": {
"Authorization": "Zoho-oauthtoken 1000.19177286678557efbbced587419745bf.75fdd577af8216bce3b8b.................",
"Content-Type": "application/json;charset=UTF-8",
"orgId": "2418175"
},
"Payload": "{\r\n \"request\": {\r\n \"subject\": \"Minimal API Ticket Test\",\r\n \"template\": {\r\n \"id\": \"2115800001.......\"\r\n },\r\n \"requester\": {\r\n \"name\": \"Edward Crist\",\r\n \"email_id\": \"hidden\"\r\n }\r\n }\r\n}"
}
I'm thinking there are hidden mandated fields in a template??
Thanks for any assistance