cURL
curl --request PUT \ --url http://sandbox.batuenergy.com/api/v1/asset \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "id": "ast_<uuid>", "name": "<string>", "make": "mke_<uuid>", "metrics": [ "mtc_<uuid>" ], "metadata": "<string>" } '
{ "status": "success", "data": { "execution": "exe_<uuid>", "asset": { "id": "ast_<uuid>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "name": "<string>", "make": "mke_<uuid>", "metrics": [ "mtc_<uuid>" ], "metadata": "<string>" } } }
Updates an asset
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The id of the asset
"ast_<uuid>"
The name of the asset
The id of make of the asset
"mke_<uuid>"
The id of metrics associated with the asset
The metadata associated with the asset
Asset response
Indicates the request was successful
"success"
The data associated with the response
Show child attributes