Getting this error:
was expecting double-quote to start field name
at [Source: org.apache.catalina.connector.CoyoteInputStream@8cc2e54; line: 1, column: 3]</message><stack-trace>org.codehaus.jackson.JsonParseException: Unexpected character ('â' (code 226)): was expecting double-quote to start field name
here is my curl syntax:
curl --request POST --user u:p --header "Cn/json" --data '{“raiseOnBehalfOf": “<username”, "requestFieldValues": {“summary”: "Request test API”}, "requestTypeId": “<id>”, "serviceDeskId": “<id>”}}' --url 'https://<instanceurl>/rest/servicedeskapi/request'
*Update:* This ended up fixing it:
curl --request POST --user u:p --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' {"raiseOnBehalfOf": “<username>”, "requestFieldValues": {"summary": “test”}, "requestTypeId": "<id>”, "serviceDeskId": <id>}' --url 'https://<instanceurl>/rest/servicedeskapi/request'. Now on to custom fields.
Hi Ramiro,
There is two {{ and three }}}. Maybe that is the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.