All asset types are associated with an asset group. An asset group connects asset types that have similar characteristics. Use the API to retrieve a list of all asset groups, add or update, or delete an asset group.
Learn more about asset groups in the OnLocation Help Center.
Returns a list of asset groups.
List of asset groups
Access denied to this resource
Resource not found
curl -i -X GET \ 'https://api.whosonlocation.com/v1/assetgroup?q=string&limit=0'
[- {
- "id": 90008,
- "name": "Laptops Group",
- "class": "fixed",
- "description": "This group includes the assets that belong to this location"
}
]
Creates a new asset group that can be assigned to an asset.
Asset Group created
Access denied to this resource
Internal server error
{- "name": "Laptops Group",
- "class": "fixed",
- "description": "This group includes the assets that belong to this location"
}
{- "id": 90008,
- "name": "Laptops Group",
- "class": "fixed",
- "description": "This group includes the assets that belong to this location"
}
Retrieves a single asset group, filtering with the provided ID.
Access denied to resource
Resource not found
Internal server error
curl -i -X GET \ https://api.whosonlocation.com/v1/assetgroup/:id
{- "id": 90008,
- "name": "Laptops Group",
- "class": "fixed",
- "description": "This group includes the assets that belong to this location"
}
Updates the details of an asset group.
Updated resource
Access denied to this resource
Internal server error
{- "name": "Laptops Group",
- "class": "fixed",
- "description": "This group includes the assets that belong to this location"
}
{- "id": 90008,
- "name": "Laptops Group",
- "class": "fixed",
- "description": "This group includes the assets that belong to this location"
}
Deletes an asset group using the provided ID.
Asset Group deleted
Access denied to resource
Resource not found
Internal server error
curl -i -X DELETE \ https://api.whosonlocation.com/v1/assetgroup/:id