cURL
curl --request POST \ --url http://sandbox.batuenergy.com/api/v1/asset \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "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>" } } }
Creates a new asset
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
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