Need API endpoints to interact with JSM and Assets

Muthuraja T
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!
February 13, 2025

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: p-square.atlassian.net/rest/

This returns 404:

{ "timestamp": "2025-02-13T06:49:47.841528791Z", "status": 404, "error": "Not Found", "message": "No message available", "path": "/p-square.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?

1 answer

0 votes
Lucas Modzelewski _Lumo_
Atlassian Partner
February 13, 2025

Hi @Muthuraja T , welcome to the Atlassian Community!

You probably downloaded collection for Server/Data Center.

For Cloud check this: https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-id-get 

Suggest an answer

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

Atlassian Community Events