I referred this site and tried to create a customer request the following command.
curl --request POST \ --url 'https://{my_instance}.atlassian.net/rest/servicedeskapi/request' \ --user {my_account}:{my_tokone} \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ -d customer_request.json
Also, the above json file is below.
{ "serviceDeskId": "1", "requestTypeId": "88", "requestFieldValues": { "summary": "Request JSD via REST", "description": "This was issued by Jira Cloud REST API." } }
However, the response was below.
{"errorMessages":["There was an error parsing JSON. Check that your request body is valid."]}
Please note that I can execute GET command with my account and token.
Do you have any ideas to fix the issue?
Regards,
There is nothing wrong with data indeed. Maybe there is an encoding problem with customer_request.json file? Can you please try the same call on postman?
Best
Thank you for your reply!
I could create customer request on Postman.
Do you know what encoding I should specify the json file?
I have specified UTF-8 and CRLF to it.
Best Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.