AlphaAlpha Docs
API ReferenceAsset locations

Add an asset location

Adds a new asset location to the hierarchy

POST
/asset-locations
AuthorizationBearer <token>

In: header

Query Parameters

parentId?string
idOverride?string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/asset-locations" \  -H "Content-Type: application/json" \  -d '{    "children": [      "string"    ],    "isRoot": true,    "name": "string"  }'
{
  "children": [
    "string"
  ],
  "clients": [
    "string"
  ],
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "description": "string",
  "id": "string",
  "isRoot": true,
  "name": "string",
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}