API reference
/- List location types
List functional areas
Create a functional area
Read a functional area
Update a functional area
Delete a functional area
List job titles
Create a job title
Read a job title
Update a job title
Delete a job title
List functional area types
Create a functional area type
Read a functional area type
Update a functional area type
Delete a functional area type
Add people to a functional area
List locations
Create a location
Read a location
Update a location
Delete a location
List a location's venues
Create a venue
Read a venue
Update a venue
Delete a venue
Create a location type
Read a location type
Update a location type
Delete a location type
List location types
Returns the categories the account files its locations under, in the order sort_order puts them.
The listing is only paginated when page is supplied. Without it every match is returned as a flat array rather than in the paged envelope.
Security
default
A filter to apply to the results. Declared as an array of objects, where each object contains an attr (attribute code), operator and value key. Examples:
?filter[0]['attr']=name&filter[0][operator]=like&filter[0][value]=luke
?filter[0]['attr']=id&filter[0][operator]=>&filter[0][value]=265
See the filters documentation for more details on how to use this.
- Mock serverhttps://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/headcount/location/type
- Your Rosterfy accounthttps://example.rosterfy.com/api/v2/headcount/location/type
curl -i -X GET \
'https://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/headcount/location/type?per_page=5&page=1&filter=%7Bfilter%7D&sort_by=%7Bsort_by%7D&sort_order=%7Bsort_order%7D&_locale=en-US' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Rosterfy-Platform: admin'Response
[ { "current_page": 1, "data": [ … ], "first_page_url": "https://example.rosterfy.com/api/v2/headcount/location/type?per_page=5&_locale=en-US&page=1", "from": 1, "next_page_url": "https://example.rosterfy.com/api/v2/headcount/location/type?per_page=5&_locale=en-US&page=2", "path": "https://example.rosterfy.com/api/v2/headcount/location/type", "per_page": 5, "prev_page_url": null, "to": 5 } ]