Hello
I’ve been trying to follow the explaination to make rest api in new JSM Insight as described here
https://developer.atlassian.com/cloud/insight/intro/introduction-and-basics/
I’ve achieved to get the workspaceId as i put on the code
base_url = <span>"https://mybaseUrl.net"</span>
workSpace = <span>"/rest/servicedeskapi/insight/workspace"</span>
headers = {<span>"Accept"</span>:<span>"application/json"</span>,<span>"X-ExperimentalApi"</span> : <span>"opt-in"</span>}
auth = HTTPBasicAuth(<span>"simone.folino@sourcesense.com"</span>,<span>"****************"</span>)
workspace2 = json.loads(requests.get(<span>f"{base_url}{workSpace}"</span>,headers=headers,auth=auth).text)
workspaceId = workspace2[<span>'values'</span>][<span>0</span>][<span>'workspaceId'</span>]
<span># Out[103]: 'my workspaceId'</span>
icon_rest = <span>f"/jsm/insight/workspace/{workspaceId}/v1/icon/global"</span>
requests.get(<span>f"{base_url}{icon_rest}"</span>,headers={<span>"Accept"</span>:<span>"application/json"</span>}).textHowever, when I try to call the /jsm/insight/workspace/{workspaceId}/v1/icon/global it gives me a dead link.
Am Idoing something wrong?
Thank you in Advance,
Simone