The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

About service request execution in Windows powershell

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 17, 2022

When executing the following request with Windows powershell of windows10, It fails with the message "{"errorMessages":["There was an error parsing JSON. Check that your request body is valid."]}". Return code: 400 What could be the cause? Note that the ` part is written in a different way, but this description succeeds in a batch file.

curl.exe -s -o ./out.txt -w "%{http_code}" ` --request POST `

--url "https://xxx.atlassian.net/rest/servicedeskapi/request" `

--header "Authorization: Basic xxxxxxx" `

--header "Accept: application/json" `

--header "Content-Type: application/json" `

--data "{\"requestParticipants\":[\"xxxxxxxxxxx\"],\"serviceDeskId\":\"3\",\"requestTypeId\":\"31\",\"requestFieldValues\":{ \"summary\":\"test isuue\",\"description\":\"test\"}}" `

--ssl-no-revoke

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events