I downloaded the Postman collection from the Atlassian website, but I couldn't get the predefined APIs in the collection to work. It has the data as below for getting assets: URL: {{protocol}}://{{host}}/{{basePath}}assets/1.0/object/22
The values of the variables are:
protocol: https
host: api.atlassian.com
basePath: xxxxx.atlassian.net/rest/
This returns 404:
{ "timestamp": "2025-02-13T06:49:47.841528791Z", "status": 404, "error": "Not Found", "message": "No message available", "path": "/xxxxxx.atlassian.net/rest/assets/1.0/aql/objects" }
I found a working API endpoint from the browser’s network activity
https://p-square.atlassian.net/gateway/api/jsm/assets/workspace/395e92ef-038d-4504-b46c-9476b134cb0e/v1/objectschema/2/objecttypes/flat?includeObjectCounts=true.
Can you give right end points to be used with complete URL for making API calls?