Returns a paginated list of all locations.
cURL
curl --request GET \ --url https://api.roostedhr.com/api/1_12/locations \ --header 'X-API-KEY: <api-key>'
200
Example
{ "locations": [ { "id": "<string>", "location": "<string>", "addy_street_number": "<string>", "addy_city": "<string>", "addy_zip": "<string>", "location_comments": "<string>", "default": 0, "saved": 0, "color": "#DC136C", "timezone": { "id": 123, "name": "<string>", "offset": "<string>" }, "companies_payroll_rulesets_id": "<string>", "payroll_rule_display": "<string>", "latitude": "<string>", "longitude": "<string>", "default_clients_id": "<string>", "default_areas": [ "<string>" ] } ], "total": 123 }
items_per_page
page
total
Number of items per page (1-100). Defaults to 25.
1 <= x <= 100
Page number. Defaults to 1.
x >= 1
OK
Show child attributes
Total number of locations