AlphaAlpha Docs
API ReferenceAsset instances

Get asset location tree for the current user with instances

Gets asset location tree for the current user

GET
/asset-instances/me
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/asset-instances/me"
[
  {
    "assetInstances": [
      {
        "address": {
          "city": "string",
          "country": "string",
          "houseNumber": "string",
          "id": "string",
          "latitude": 0.1,
          "longitude": 0.1,
          "postalCode": "string",
          "street": "string"
        },
        "assetLocationId": "string",
        "certifications": [
          {
            "critical": true,
            "description": "string",
            "documents": [
              {
                "blobId": "string",
                "created": "2019-08-24T14:15:22Z",
                "extension": "string",
                "fileSize": 0,
                "name": "string",
                "type": "IMAGE"
              }
            ],
            "expirationDate": "2019-08-24T14:15:22Z",
            "id": "string",
            "isCritical": true,
            "isRepeat": true,
            "issueDate": "2019-08-24T14:15:22Z",
            "repeat": true,
            "status": "VALID",
            "type": "string"
          }
        ],
        "created": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "currentValue": 0.1,
        "failures": [
          {
            "alerted": "2019-08-24T14:15:22Z",
            "arrival": "2019-08-24T14:15:22Z",
            "cause": "string",
            "date": "2019-08-24T14:15:22Z",
            "description": "string",
            "id": "string",
            "repaired": "2019-08-24T14:15:22Z",
            "type": "string"
          }
        ],
        "id": "string",
        "installationDate": "2019-08-24T14:15:22Z",
        "maintenance": [
          {
            "documents": [
              {
                "blobId": "string",
                "created": "2019-08-24T14:15:22Z",
                "extension": "string",
                "fileSize": 0,
                "name": "string",
                "type": "IMAGE"
              }
            ],
            "doneDate": "2019-08-24T14:15:22Z",
            "dueDate": "2019-08-24T14:15:22Z",
            "executed": true,
            "finished": true,
            "id": "string",
            "status": "PLANNED",
            "type": "MAINTENANCE"
          }
        ],
        "metadata": {
          "property1": "string",
          "property2": "string"
        },
        "name": "string",
        "objectNumber": "string",
        "productId": "string",
        "serialNumber": "string",
        "serviceIntervals": [
          {
            "description": "string",
            "id": "string",
            "intervals": [
              {
                "cost": 0.1,
                "year": 0
              }
            ],
            "partCategory": "string",
            "partId": "string"
          }
        ],
        "status": "OPERATIONAL",
        "tenantId": "string",
        "type": "string",
        "updated": "2019-08-24T14:15:22Z",
        "updatedBy": "string"
      }
    ],
    "children": [
      {
        "assetInstances": [
          {
            "address": {
              "city": "string",
              "country": "string",
              "houseNumber": "string",
              "id": "string",
              "latitude": 0.1,
              "longitude": 0.1,
              "postalCode": "string",
              "street": "string"
            },
            "assetLocationId": "string",
            "certifications": [
              {
                "critical": true,
                "description": "string",
                "documents": [
                  {
                    "blobId": "string",
                    "created": "2019-08-24T14:15:22Z",
                    "extension": "string",
                    "fileSize": 0,
                    "name": "string",
                    "type": "IMAGE"
                  }
                ],
                "expirationDate": "2019-08-24T14:15:22Z",
                "id": "string",
                "isCritical": true,
                "isRepeat": true,
                "issueDate": "2019-08-24T14:15:22Z",
                "repeat": true,
                "status": "VALID",
                "type": "string"
              }
            ],
            "created": "2019-08-24T14:15:22Z",
            "createdBy": "string",
            "currentValue": 0.1,
            "failures": [
              {
                "alerted": "2019-08-24T14:15:22Z",
                "arrival": "2019-08-24T14:15:22Z",
                "cause": "string",
                "date": "2019-08-24T14:15:22Z",
                "description": "string",
                "id": "string",
                "repaired": "2019-08-24T14:15:22Z",
                "type": "string"
              }
            ],
            "id": "string",
            "installationDate": "2019-08-24T14:15:22Z",
            "maintenance": [
              {
                "documents": [
                  {
                    "blobId": "string",
                    "created": "2019-08-24T14:15:22Z",
                    "extension": "string",
                    "fileSize": 0,
                    "name": "string",
                    "type": "IMAGE"
                  }
                ],
                "doneDate": "2019-08-24T14:15:22Z",
                "dueDate": "2019-08-24T14:15:22Z",
                "executed": true,
                "finished": true,
                "id": "string",
                "status": "PLANNED",
                "type": "MAINTENANCE"
              }
            ],
            "metadata": {
              "property1": "string",
              "property2": "string"
            },
            "name": "string",
            "objectNumber": "string",
            "productId": "string",
            "serialNumber": "string",
            "serviceIntervals": [
              {
                "description": "string",
                "id": "string",
                "intervals": [
                  {
                    "cost": 0.1,
                    "year": 0
                  }
                ],
                "partCategory": "string",
                "partId": "string"
              }
            ],
            "status": "OPERATIONAL",
            "tenantId": "string",
            "type": "string",
            "updated": "2019-08-24T14:15:22Z",
            "updatedBy": "string"
          }
        ],
        "children": [],
        "clients": [
          "string"
        ],
        "created": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "description": "string",
        "enrichedClients": [
          {
            "email": "string",
            "firstName": "string",
            "hasFullAccess": true,
            "id": "string",
            "language": "string",
            "lastLogin": "2019-08-24T14:15:22Z",
            "lastName": "string",
            "profile": {
              "avatar": {
                "blobId": "string",
                "height": 0,
                "thumbnailBlobId": "string",
                "width": 0
              },
              "displayName": "string",
              "logo": {
                "blobId": "string",
                "height": 0,
                "thumbnailBlobId": "string",
                "width": 0
              }
            },
            "projectAccess": [
              "string"
            ],
            "roles": [
              "string"
            ],
            "status": "ACTIVE",
            "subsidiaryAccess": [
              "string"
            ],
            "tenantId": "string",
            "twoFactorEnabled": true,
            "verified": true
          }
        ],
        "id": "string",
        "isRoot": true,
        "name": "string",
        "updated": "2019-08-24T14:15:22Z",
        "updatedBy": "string"
      }
    ],
    "clients": [
      "string"
    ],
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "description": "string",
    "enrichedClients": [
      {
        "email": "string",
        "firstName": "string",
        "hasFullAccess": true,
        "id": "string",
        "language": "string",
        "lastLogin": "2019-08-24T14:15:22Z",
        "lastName": "string",
        "profile": {
          "avatar": {
            "blobId": "string",
            "height": 0,
            "thumbnailBlobId": "string",
            "width": 0
          },
          "displayName": "string",
          "logo": {
            "blobId": "string",
            "height": 0,
            "thumbnailBlobId": "string",
            "width": 0
          }
        },
        "projectAccess": [
          "string"
        ],
        "roles": [
          "string"
        ],
        "status": "ACTIVE",
        "subsidiaryAccess": [
          "string"
        ],
        "tenantId": "string",
        "twoFactorEnabled": true,
        "verified": true
      }
    ],
    "id": "string",
    "isRoot": true,
    "name": "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"
}