Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

About service request execution in Windows powershell

青山 明 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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events