/asset-management/v1/asset-groups/{assetGroupId}/add-site-partners
This endpoint allows you to add site partners to an asset group.
sitePartners
array
required
{
"sitePartners": [
"string"
]
}
Success
{
"data": {
"id": "string",
"type": "location",
"network": {
"id": "string"
},
"sitePartners": [
{
"id": "string"
}
],
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z",
"location": {
"name": "string",
"visibility": "EMPLOYEE_ONLY",
"openingDate": "2023-06-07T17:32:28Z",
"contactDetails": {
"phone": "string",
"email": "alice@example.com",
"website": "string",
"facebook": "string",
"linkedIn": "string"
},
"images": [
{
"url": "string",
"category": "string",
"imgType": "string",
"thumbnail": "string"
}
],
"businessType": "HOTEL",
"physicalAddress": {
"streetNumber": "string",
"streetName": "string",
"streetDetails": "string",
"city": "string",
"state": "AL",
"postalCode": "string",
"countryCode": "US"
},
"hours": {
"twentyfourseven": true,
"regularHours": [
{
"weekday": 123.0,
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalOpenings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalClosings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
]
},
"geoLocation": {
"longitude": 123.0,
"latitude": 123.0
},
"timezone": "string",
"directionHint": "string",
"allowChargingWhenClosed": true,
"parkingType": "PARKING_GARAGE",
"amenities": [
"string"
],
"visibilityNote": "string",
"industryVertical": "RETAIL_AND_HOSPITALITY"
},
"metadata": {}
}
}
/asset-management/v1/asset-groups
This endpoint retrieves a list of all asset-groups
limit
string
The maximum number of asset groups to return (default 20, maximum 100)
startingAfter
string
The ID of the last asset group in the previous page of results. Results will start after this asset group
ids
string
A comma-separated list of asset group IDs to filter the results
A list of asset groups
{
"data": {
"hasMore": true,
"items": [
{
"id": "string",
"type": "location",
"network": {
"id": "string"
},
"sitePartners": [
{
"id": "string"
}
],
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z",
"location": {
"name": "string",
"visibility": "EMPLOYEE_ONLY",
"openingDate": "2023-06-07T17:32:28Z",
"contactDetails": {
"phone": "string",
"email": "alice@example.com",
"website": "string",
"facebook": "string",
"linkedIn": "string"
},
"images": [
{
"url": "string",
"category": "string",
"imgType": "string",
"thumbnail": "string"
}
],
"businessType": "HOTEL",
"physicalAddress": {
"streetNumber": "string",
"streetName": "string",
"streetDetails": "string",
"city": "string",
"state": "AL",
"postalCode": "string",
"countryCode": "US"
},
"hours": {
"twentyfourseven": true,
"regularHours": [
{
"weekday": 123.0,
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalOpenings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalClosings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
]
},
"geoLocation": {
"longitude": 123.0,
"latitude": 123.0
},
"timezone": "string",
"directionHint": "string",
"allowChargingWhenClosed": true,
"parkingType": "PARKING_GARAGE",
"amenities": [
"string"
],
"visibilityNote": "string",
"industryVertical": "RETAIL_AND_HOSPITALITY"
},
"metadata": {}
}
]
}
}
/asset-management/v1/asset-groups
This endpoint creates a new asset group
type
string
required
The type of asset group to be created
network
string
The ID of the network associated with the asset group
sitePartners
array
required
An array of site partner IDs related to the asset group
location
object (CreateLocationParams)
Details specific to the location type of asset group
name
string
required
visibility
string
required
Indicates if the location is public or has some level of restricted access.
openingDate
string
contactDetails
object
required
images
array
businessType
string
required
physicalAddress
object
required
Physical address details
hours
object
required
Specifies the opening hours of the location. At a minimum you must specify if the location is open 24/7 via the twentyfourseven property.
geoLocation
object (GeoLocation)
required
Geolocation details for the location
directionHint
string
Directional hint for the location
allowChargingWhenClosed
boolean
required
Indicates that if the location is closed charging is still available.
parkingType
string
Type of parking available at the location
amenities
array
Amenities available at the location
visibilityNote
string
Additional notes regarding visibility
industryVertical
string or null
metadata
object
Additional metadata for the asset group
{
"type": "location",
"network": "string",
"sitePartners": [
"string"
],
"location": {
"name": "string",
"visibility": "EMPLOYEE_ONLY",
"openingDate": "2023-06-07T17:32:28Z",
"contactDetails": {
"phone": "string",
"email": "alice@example.com",
"website": "string",
"facebook": "string",
"linkedIn": "string"
},
"images": [
{
"url": "string",
"category": "string",
"imgType": "string",
"thumbnail": "string"
}
],
"businessType": "HOTEL",
"physicalAddress": {
"streetNumber": "string",
"streetName": "string",
"streetDetails": "string",
"city": "string",
"state": "AL",
"postalCode": "string",
"countryCode": "US"
},
"hours": {
"twentyfourseven": true,
"regularHours": [
{
"weekday": 123.0,
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalOpenings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalClosings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
]
},
"geoLocation": {
"longitude": 123.0,
"latitude": 123.0
},
"directionHint": "string",
"allowChargingWhenClosed": true,
"parkingType": "PARKING_GARAGE",
"amenities": [
"string"
],
"visibilityNote": "string",
"industryVertical": "RETAIL_AND_HOSPITALITY"
},
"metadata": {}
}
Asset group successfully created
{
"id": "string",
"type": "location",
"network": {
"id": "string"
},
"sitePartners": [
{
"id": "string"
}
],
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z",
"location": {
"name": "string",
"visibility": "EMPLOYEE_ONLY",
"openingDate": "2023-06-07T17:32:28Z",
"contactDetails": {
"phone": "string",
"email": "alice@example.com",
"website": "string",
"facebook": "string",
"linkedIn": "string"
},
"images": [
{
"url": "string",
"category": "string",
"imgType": "string",
"thumbnail": "string"
}
],
"businessType": "HOTEL",
"physicalAddress": {
"streetNumber": "string",
"streetName": "string",
"streetDetails": "string",
"city": "string",
"state": "AL",
"postalCode": "string",
"countryCode": "US"
},
"hours": {
"twentyfourseven": true,
"regularHours": [
{
"weekday": 123.0,
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalOpenings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalClosings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
]
},
"geoLocation": {
"longitude": 123.0,
"latitude": 123.0
},
"timezone": "string",
"directionHint": "string",
"allowChargingWhenClosed": true,
"parkingType": "PARKING_GARAGE",
"amenities": [
"string"
],
"visibilityNote": "string",
"industryVertical": "RETAIL_AND_HOSPITALITY"
},
"metadata": {}
}
/asset-management/v1/asset-groups/{assetGroupId}/remove-site-partners
This endpoint allows you to remove site partners from an asset group.
sitePartners
array
required
{
"sitePartners": [
"string"
]
}
Success
{
"data": {
"id": "string",
"type": "location",
"network": {
"id": "string"
},
"sitePartners": [
{
"id": "string"
}
],
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z",
"location": {
"name": "string",
"visibility": "EMPLOYEE_ONLY",
"openingDate": "2023-06-07T17:32:28Z",
"contactDetails": {
"phone": "string",
"email": "alice@example.com",
"website": "string",
"facebook": "string",
"linkedIn": "string"
},
"images": [
{
"url": "string",
"category": "string",
"imgType": "string",
"thumbnail": "string"
}
],
"businessType": "HOTEL",
"physicalAddress": {
"streetNumber": "string",
"streetName": "string",
"streetDetails": "string",
"city": "string",
"state": "AL",
"postalCode": "string",
"countryCode": "US"
},
"hours": {
"twentyfourseven": true,
"regularHours": [
{
"weekday": 123.0,
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalOpenings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalClosings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
]
},
"geoLocation": {
"longitude": 123.0,
"latitude": 123.0
},
"timezone": "string",
"directionHint": "string",
"allowChargingWhenClosed": true,
"parkingType": "PARKING_GARAGE",
"amenities": [
"string"
],
"visibilityNote": "string",
"industryVertical": "RETAIL_AND_HOSPITALITY"
},
"metadata": {}
}
}
/asset-management/v1/asset-groups/{assetGroupId}/site-contacts
This endpoint creates a new site contact for an asset group
name
string
required
The name of the site contact
email
string
required
The email address of the site contact
phone
string
The phone number of the site contact
type
string
required
The type of site contact (e.g., FLEET_MANAGER)
{
"name": "string",
"email": "string",
"phone": "string",
"type": "FLEET_MANAGER"
}
Success
{
"data": {
"id": "string",
"networkId": "string",
"assetGroupId": "string",
"name": "string",
"email": "string",
"phone": "string",
"type": "FLEET_MANAGER",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}
/asset-management/v1/asset-groups/{assetGroupId}/site-contacts/{siteContactId}
This endpoint archives a site contact for an asset group
WARNING! This action is potentially dangerous and irreversible!
assetGroupId
string
required
The ID of the asset group
siteContactId
string
required
The ID of the site contact
Success
{
"data": {
"id": "string",
"networkId": "string",
"assetGroupId": "string",
"name": "string",
"email": "string",
"phone": "string",
"type": "FLEET_MANAGER",
"isArchived": true,
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}
/asset-management/v1/asset-groups/{assetGroupId}
This endpoint updates an existing asset group by its ID.
location
object (UpdateLocationParams)
name
string
The name of the location
visibility
string
Indicates if the location is public or has some level of restricted access.
openingDate
string or null
The date the location opened
contactDetails
object
Updating contact details does not support partial updates. You must specify all contact detail properties you want.
images
array
Images associated with the location
businessType
string
Type of business associated with the location
physicalAddress
object (PhysicalAddress)
Physical address details
hours
object
Specifies the opening hours of the location. At a minimum you must specify if the location is open 24/7 via the twentyfourseven property.
geoLocation
object (GeoLocation)
Geolocation details for the location
directionHint
string or null
allowChargingWhenClosed
boolean
Indicates that if the location is close charging is still available.
parkingType
string or null
amenities
array
visibilityNote
string or null
industryVertical
string or null
metadata
object
Additional metadata for the asset group
{
"location": {
"name": "string",
"visibility": "EMPLOYEE_ONLY",
"openingDate": "2023-06-07T17:32:28Z",
"contactDetails": {
"phone": "string",
"email": "alice@example.com",
"website": "string",
"facebook": "string",
"linkedIn": "string"
},
"images": [
{
"url": "string",
"category": "string",
"imgType": "string",
"thumbnail": "string"
}
],
"businessType": "HOTEL",
"physicalAddress": {
"streetNumber": "string",
"streetName": "string",
"streetDetails": "string",
"city": "string",
"state": "AL",
"postalCode": "string",
"countryCode": "US"
},
"hours": {
"twentyfourseven": true,
"regularHours": [
{
"weekday": 123.0,
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalOpenings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalClosings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
]
},
"geoLocation": {
"longitude": 123.0,
"latitude": 123.0
},
"directionHint": "string",
"allowChargingWhenClosed": true,
"parkingType": "PARKING_GARAGE",
"amenities": [
"string"
],
"visibilityNote": "string",
"industryVertical": "RETAIL_AND_HOSPITALITY"
},
"metadata": {}
}
Success. Returns the updated asset group.
{
"data": {
"id": "string",
"type": "location",
"network": {
"id": "string"
},
"sitePartners": [
{
"id": "string"
}
],
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z",
"location": {
"name": "string",
"visibility": "EMPLOYEE_ONLY",
"openingDate": "2023-06-07T17:32:28Z",
"contactDetails": {
"phone": "string",
"email": "alice@example.com",
"website": "string",
"facebook": "string",
"linkedIn": "string"
},
"images": [
{
"url": "string",
"category": "string",
"imgType": "string",
"thumbnail": "string"
}
],
"businessType": "HOTEL",
"physicalAddress": {
"streetNumber": "string",
"streetName": "string",
"streetDetails": "string",
"city": "string",
"state": "AL",
"postalCode": "string",
"countryCode": "US"
},
"hours": {
"twentyfourseven": true,
"regularHours": [
{
"weekday": 123.0,
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalOpenings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
],
"exceptionalClosings": [
{
"periodBegin": "string",
"periodEnd": "string"
}
]
},
"geoLocation": {
"longitude": 123.0,
"latitude": 123.0
},
"timezone": "string",
"directionHint": "string",
"allowChargingWhenClosed": true,
"parkingType": "PARKING_GARAGE",
"amenities": [
"string"
],
"visibilityNote": "string",
"industryVertical": "RETAIL_AND_HOSPITALITY"
},
"metadata": {}
}
}
Was this page helpful?