I have a request in JSM which has an asset custom field linked to it. I’m looking for an API endpoint that will allow me to query for said asset object by Id and provide back the details (name in particular for my use case).
I’ve tried both of the following endpoints:
GET /rest/servicedeskapi/request/{issueIdOrKey}
GET /rest/api/3/issue/{issueIdOrKey}
Both provide me the custom field containing my asset in the following format:
What I can’t seem to find is an API which will allow me to pass the above workspaceId and/or objectId in order to get the actual object details. Any assistance is appreciated.
Any insight on this one? It seems the details of the asset record should be available via some API, but as @jvillanuevabeyondtru alluded, there doesn’t seem to be one listed in any of the documentation I’ve reviewed.
GET /jsm/assets/workspace/{workspaceId}/v1/object/{id}
but am getting a 404 response. Presumably that wouldn’t be caused by an authentication failure so I’m not sure exactly what could be going wrong here. I’ve copied that endpoint link directly from the documentation (subbing in my own values of course).
Is it possible the endpoint was moved and the documentation not updated?