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
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" ] }'
Cheers,
Pascal
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.