POST
/
entities
/
asset
curl --request POST \
  --url http://localhost:8002/entities/asset \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "external_id": "<string>",
  "type": "charger",
  "site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "external_id": "<string>",
  "type": "boundary meter",
  "site_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Request model for creating a new asset.

external_id
string
required

Vendor-specific identifier for the asset

type
enum<string>
required

Type of asset being created

Available options:
charger,
battery
site_id
string
required

ID of the site where the asset is located

Response

200
application/json
Successfully created asset

Response model for asset information.

id
string
required

Axle's internal UUID for the asset

external_id
string
required

Vendor-specific identifier for the asset

type
enum<string>
required

Type of asset

Available options:
boundary meter,
charger,
battery,
heat pump,
hot water tank,
frequency meter
site_id
string
required

ID of the site where the asset is located