Skip to main content
POST
/
make
cURL
curl --request POST \
  --url http://sandbox.batuenergy.com/api/v1/make \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "METER",
  "brand": "<string>",
  "model": "<string>",
  "version": "<string>",
  "integrations": [
    "int_<uuid>"
  ],
  "metadata": "<string>"
}
'
{
  "status": "success",
  "data": {
    "execution": "exe_<uuid>",
    "make": {
      "id": "mke_<uuid>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "type": "METER",
      "brand": "<string>",
      "model": "<string>",
      "version": "<string>",
      "integrations": [
        "int_<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
type
enum<string>
required

The type of device the make refers to

Available options:
METER,
EV,
SOLAR,
BATTERY
brand
string
required

The brand of the make

model
string
required

The model of the make

version
string
required

The version of the make

integrations
string<uuid>[]

The integrations associated with the make

metadata
string | null

The metadata associated with the make

Response

Make response

status
string
required

Indicates the request was successful

Example:

"success"

data
object
required

The data associated with the response