cURL
curl --request GET \ --url https://lab.trustos.telefonicatech.com/track/v2/assets/{id}/global-state \ --header 'Authorization: Bearer <token>'
{ "statusCode": 200, "message": "Asset found", "data": { "trackID": "did:trustos:trackid:<id>", "assetId": "asset-test-01", "data": { "id": "A2839RP", "version": "1" }, "networkId": 10004, "assetHash": "3c543e352981fabafc8a78a301cd116320010a13abe8abf8428eaedcee7ddabd", "globalState": { "color": "red", "position": { "x": "23.34", "y": "-24.22" } } } }
Gets the assets’s global state.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Identifier of the asset.
"did:trustos:trackid:<id>"
Successful asset's global state retrieval.
Request status code.
200
Message returned by the request.
"Asset found"
Show child attributes
Was this page helpful?