What is the POST syntac to create a Service Request in Service Desk

Calderara Serge November 29, 2018

Dear all,

I am trying to get familar with service desk and its rest api.

I manage using google ARC tool to fetch a particular request using the URl :
https://mytest.atlassian.net/rest/servicedeskapi/request/SD-3

 

Now I am fighting to get the POST working syntax to create a Service Request . i could not found sample complete url.

What do I need to add to the URl https://mytest.atlassian.net/rest/servicedeskapi/request in order to post a new service request?

Thanks for sample in order to test under google ARC

regards

1 answer

0 votes
Pascal Offenhäusser (Scandio) November 30, 2018

Hi Calderara,

you need to specify the service desk project id and the request type id, also you need to provide the values for required fields.

for example:

curl --request POST \ 
--url 'https://your-domain.atlassian.net/rest/servicedeskapi/request' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"serviceDeskId": "10",
"requestTypeId": "25",
"requestFieldValues": {
"summary": "Request JSD help via REST",
"description": "I need a new *mouse* for my Mac"
},
"requestParticipants": [ "qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae" ] }'

Service Desk Cloud Rest Api

 

Cheers,

Pascal

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events