Assets

Note: This page has not yet been converted to the new developer portal format. Please use Swagger to test this API.

Assets

Asset management operations

GET /rest/v2/asset-management/assets

Description

getAllAssets

Parameters

NameData TypeRequired?Description

assetTypeId

string

y

assetTypeId

pageNumber

integer

n

pageNumber

pageSize

integer

n

pageSize

searchValue

string

n

searchValue

X-EB-Organization-Id

string

y

HTTP header

Responses

CodeDescription

200 OK

Example Value

{
"data": [
{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"assetTypeName": "string",
"category": "string",
"createdId": 0,
"createdName": "string",
"createdProxyName": "string",
"createdTimestamp": "2021-04-28T19:37:04.639Z",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"id": "string",
"lastModifiedId": 0,
"lastModifiedName": "string",
"lastModifiedProxyName": "string",
"lastModifiedTimestamp": "2021-04-28T19:37:04.639Z",
"name": "string",
"notes": "string",
"organizationId": 0,
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0,
"uploadBatchCreatedTimestamp": "2021-04-28T19:37:04.639Z"
}
],
"first": true,
"last": true,
"pageNumber": 0,
"pageSize": 0,
"totalCount": 0,
"totalPageCount": 0
}

Model 200_getAllAssets_Model

POST /rest/v2/asset-management/assets

Description

createAsset

Parameters

NameData TypeRequired?Description

createAssetRequest

object

y

createAssetRequest

Example Value
{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"category": "string",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"name": "string",
"notes": "string",
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0
}

Parameter content type
application/json

Model createAssetRequest_Model

X-EB-Organization-Id

string

y

HTTP header

Responses

CodeDescription

200 OK

Example Value

{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"assetTypeName": "string",
"category": "string",
"createdId": 0,
"createdName": "string",
"createdProxyName": "string",
"createdTimestamp": "2021-04-28T19:39:52.629Z",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"id": "string",
"lastModifiedId": 0,
"lastModifiedName": "string",
"lastModifiedProxyName": "string",
"lastModifiedTimestamp": "2021-04-28T19:39:52.629Z",
"name": "string",
"notes": "string",
"organizationId": 0,
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0,
"uploadBatchCreatedTimestamp": "2021-04-28T19:39:52.629Z"
}

Model 200_createAsset_Model

GET /rest/v2/asset-management/assets/asset-type-id/{assetTypeId}/external-id/{externalId}

Description

getAssetByAssetTypeIdAndExternalId

Parameters

NameData TypeRequired?Description

assetTypeId

string

y

assetTypeId

externalId

string

y

externalId

X-EB-Organization-Id

string

y

HTTP header

Responses

CodeDescription

200 OK

Example Value

{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"assetTypeName": "string",
"category": "string",
"createdId": 0,
"createdName": "string",
"createdProxyName": "string",
"createdTimestamp": "2021-04-28T19:45:17.221Z",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"id": "string",
"lastModifiedId": 0,
"lastModifiedName": "string",
"lastModifiedProxyName": "string",
"lastModifiedTimestamp": "2021-04-28T19:45:17.221Z",
"name": "string",
"notes": "string",
"organizationId": 0,
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0,
"uploadBatchCreatedTimestamp": "2021-04-28T19:45:17.221Z"
}

Model 200_getAssetByAssetTypeIdAndExternalId_Model

GET /rest/v2/asset-management/assets/{id}

Description

getAsset

Parameters

NameData TypeRequired?Description

id

string

y

id

X-EB-Organization-Id

string

y

HTTP header

Responses

CodeDescription

200 OK

Example Value

{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"assetTypeName": "string",
"category": "string",
"createdId": 0,
"createdName": "string",
"createdProxyName": "string",
"createdTimestamp": "2021-04-28T19:49:35.237Z",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"id": "string",
"lastModifiedId": 0,
"lastModifiedName": "string",
"lastModifiedProxyName": "string",
"lastModifiedTimestamp": "2021-04-28T19:49:35.237Z",
"name": "string",
"notes": "string",
"organizationId": 0,
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0,
"uploadBatchCreatedTimestamp": "2021-04-28T19:49:35.237Z"
}

Model 200_getAsset_Model

PUT /rest/v2/asset-management/assets/{id}

Description

updateAssetById

Parameters

NameData TypeRequired?Description

id

string

y

id

updateAssetRequest

object

y

updateAssetRequest

Example Value
{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"category": "string",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"name": "string",
"notes": "string",
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0
}
Parameter content type
application/json

Model updateAssetRequest_Model

X-EB-Organization-Id

string

y

HTTP header

Responses

CodeDescription

200 OK

Example Value

{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"assetTypeName": "string",
"category": "string",
"createdId": 0,
"createdName": "string",
"createdProxyName": "string",
"createdTimestamp": "2021-04-28T19:51:57.834Z",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"id": "string",
"lastModifiedId": 0,
"lastModifiedName": "string",
"lastModifiedProxyName": "string",
"lastModifiedTimestamp": "2021-04-28T19:51:57.834Z",
"name": "string",
"notes": "string",
"organizationId": 0,
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0,
"uploadBatchCreatedTimestamp": "2021-04-28T19:51:57.834Z"
}

Model 200_updateAssetById_Model

DELETE /rest/v2/asset-management/assets/{id}

Description

deleteAssetById

Parameters

NameData TypeRequired?Description

id

string

y

id

X-EB-Organization-Id

string

y

HTTP header

Responses

CodeDescription

200 OK

Example Value

{
"address": {
"city": "string",
"country": "string",
"postalCode": "string",
"state": "string",
"streetAddress1": "string",
"streetAddress2": "string"
},
"assetTypeId": "string",
"assetTypeName": "string",
"category": "string",
"createdId": 0,
"createdName": "string",
"createdProxyName": "string",
"createdTimestamp": "2021-04-28T19:57:26.291Z",
"endTimestamp": 0,
"externalId": "string",
"geometry": "string",
"iconId": "string",
"id": "string",
"lastModifiedId": 0,
"lastModifiedName": "string",
"lastModifiedProxyName": "string",
"lastModifiedTimestamp": "2021-04-28T19:57:26.291Z",
"name": "string",
"notes": "string",
"organizationId": 0,
"properties": [
{
"name": "string",
"propertyId": "string",
"value": {}
}
],
"startTimestamp": 0,
"uploadBatchCreatedTimestamp": "2021-04-28T19:57:26.291Z"
}

Model 200_deleteAssetById_Model