/asset-management/v1/asset-groups/{assetGroupId}/add-site-partnersThis endpoint allows you to add site partners to an asset group.
sitePartnersarrayrequired
{
"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-groupsThis endpoint retrieves a list of all asset-groups
limitstringThe maximum number of asset groups to return (default 20, maximum 100)
startingAfterstringThe ID of the last asset group in the previous page of results. Results will start after this asset group
idsstringA 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-groupsThis endpoint creates a new asset group
typestringrequired
The type of asset group to be created
networkstringThe ID of the network associated with the asset group
sitePartnersarrayrequired
An array of site partner IDs related to the asset group
locationobject (CreateLocationParams)Details specific to the location type of asset group
namestringrequired
visibilitystringrequired
Indicates if the location is public or has some level of restricted access.
openingDatestringcontactDetailsobjectrequired
imagesarraybusinessTypestringrequired
physicalAddressobjectrequired
Physical address details
hoursobjectrequired
Specifies the opening hours of the location. At a minimum you must specify if the location is open 24/7 via the twentyfourseven property.
geoLocationobject (GeoLocation)required
Geolocation details for the location
directionHintstringDirectional hint for the location
allowChargingWhenClosedbooleanrequired
Indicates that if the location is closed charging is still available.
parkingTypestringType of parking available at the location
amenitiesarrayAmenities available at the location
visibilityNotestringAdditional notes regarding visibility
industryVerticalstring or nullmetadataobjectAdditional 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-partnersThis endpoint allows you to remove site partners from an asset group.
sitePartnersarrayrequired
{
"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-contactsThis endpoint creates a new site contact for an asset group
namestringrequired
The name of the site contact
emailstringrequired
The email address of the site contact
phonestringThe phone number of the site contact
typestringrequired
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!
assetGroupIdstringrequired
The ID of the asset group
siteContactIdstringrequired
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.
locationobject (UpdateLocationParams)namestringThe name of the location
visibilitystringIndicates if the location is public or has some level of restricted access.
openingDatestring or nullThe date the location opened
contactDetailsobjectUpdating contact details does not support partial updates. You must specify all contact detail properties you want.
imagesarrayImages associated with the location
businessTypestringType of business associated with the location
physicalAddressobject (PhysicalAddress)Physical address details
hoursobjectSpecifies the opening hours of the location. At a minimum you must specify if the location is open 24/7 via the twentyfourseven property.
geoLocationobject (GeoLocation)Geolocation details for the location
directionHintstring or nullallowChargingWhenClosedbooleanIndicates that if the location is close charging is still available.
parkingTypestring or nullamenitiesarrayvisibilityNotestring or nullindustryVerticalstring or nullmetadataobjectAdditional 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?