The Locations API allows you to manage physical locations where assets and users can be assigned.
List Locations
curl -X GET "https://your-domain.com/api/v1/locations" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Number of results to return
Search string to filter results
sort
string
default:"created_at"
Column to sort by. Allowed values: id, name, address, address2, city, state, country, zip, manager, parent, assets_count, assigned_assets_count, users_count
Filter by parent location ID
Filter by location manager ID
Total number of locations
Array of location objects
Parent location information
Location manager information
Total number of assets at this location
Number of assigned assets at this location
Number of users at this location
Get Location by ID
curl -X GET "https://your-domain.com/api/v1/locations/{location_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Create Location
curl -X POST "https://your-domain.com/api/v1/locations" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"name": "New York Office",
"address": "123 Main Street",
"city": "New York",
"state": "NY",
"country": "US",
"zip": "10001"
}'
Parent location ID (for hierarchical locations)
Location manager’s user ID
Currency code (e.g., USD, EUR)
Update Location
curl -X PATCH "https://your-domain.com/api/v1/locations/{location_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Location Name",
"manager_id": 5
}'
Delete Location
curl -X DELETE "https://your-domain.com/api/v1/locations/{location_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Get Location’s Users
curl -X GET "https://your-domain.com/api/v1/locations/{location_id}/users" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Number of results to return
Returns all users assigned to this location.
Get Location’s Assets
curl -X GET "https://your-domain.com/api/v1/locations/{location_id}/assets" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Number of results to return
Returns all assets with this as their default location.
Get Assigned Assets
curl -X GET "https://your-domain.com/api/v1/locations/{location_id}/assigned/assets" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Returns all assets currently assigned to this location.
Get Assigned Accessories
curl -X GET "https://your-domain.com/api/v1/locations/{location_id}/assigned/accessories" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json"
Returns all accessories currently assigned to users at this location.