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

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events