Skip to main content
PUT
/
asset
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>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string<uuid>
required

The id of the asset

Example:

"ast_<uuid>"

name
string

The name of the asset

make
string<uuid>

The id of make of the asset

Example:

"mke_<uuid>"

metrics
string<uuid>[]

The id of metrics associated with the asset

metadata
string

The metadata associated with the asset

Response

Asset response

status
string
required

Indicates the request was successful

Example:

"success"

data
object
required

The data associated with the response