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: 

API doubt to get workspcae id

Sreekuttan B
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2023

/rest/servicedeskapi/assets/workspace for this url i want to get work space id so what and all informtion i have to pass?

how to get this value 

atlassian.xsrf.token=9d96e64b-4dcd-4137-a176-j1d4a2afbe60_663930b199b2f2b739f9c0f0678499eebbc6_lin?

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Rudy Holtkamp
Community Champion
July 3, 2023

With the workspace id, you can access your asset data via the REST API

curl --request POST \
--url 'https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v1/object/aql?startAt={startAt}&maxResults={maxResults}&includeAttributes={includeAttributes}' \
--header 'Accept: application/json' \
--header
'Content-Type: application/json' \
--header 'Authorization: Basic <API TOKEN>' \
--data
'{ "qlQuery": "objectType = Office AND Name LIKE SYD" }

 But you still need to provide your api token (see here)

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events