Returns the values a given field accepts, as a flat list of value and text pairs. value is what you send back on a write; text is the label the same thing is shown under in the console. Use this instead of hard-coding IDs, which differ from one account to the next.
The list is not paginated and carries no envelope - the whole set comes back in one array, ordered as the option set defines.
The set named in the URL decides what you get. Common ones are:
| Option set | Values for |
|---|---|
event_type | An event's type |
event_template | The template an event can be created from |
event_shift_status | A shift application's status |
event_shift_type | A shift's type |
event_shift_status_type | The category a shift status belongs to |
shift_template | The template a shift can be created from |
user_type | A user's type |
user_group, user_group_type | A user's group, and the group's type |
user_checkpoint, user_checkpoint_type | A user's checkpoint, and its type |
training_type | A training module's type |
form_type, form_category | A form's type and category |
report_category | A report's category |
blog_article_type | An article's type |
item_category | An inventory item's category |
headcount_functionalarea | A functional area |
headcount_functionalarea_type | A functional area's type |
headcount_functionalarea_job_title | A job title within a functional area |
headcount_location, headcount_location_type | A location and its type |
headcount_location_venue | A venue within a location |
headcount_journey | A journey |
Further sets exist beyond this list, and which of them a caller can read depends on the permissions that caller holds.
A few sets are narrowed by a further value - headcount_location_venue by headcount_location_id, for instance, and headcount_functionalarea_job_title by headcount_functional_area_id. Send that value as a query parameter. Where the narrowing value is mandatory and is missing, the response is an empty array rather than an error.
- Mock serverhttps://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/helpers/source/{module}
- Your Rosterfy accounthttps://example.rosterfy.com/api/v2/helpers/source/{module}
curl -i -X GET \
'https://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/helpers/source/{module}?assoc=0&active=1&filter=%7Bfilter%7D' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Rosterfy-Platform: admin'[ { "value": 1, "text": "Applied" }, { "value": 2, "text": "Pending" }, { "value": 3, "text": "Confirmed" }, { "value": 4, "text": "Attended" }, { "value": 5, "text": "Emergency" }, { "value": 6, "text": "Rejected" }, { "value": 7, "text": "Waitlist" }, { "value": 8, "text": "Cancelled" }, { "value": 9, "text": "Conflict" }, { "value": 10, "text": "No Show" }, { "value": 11, "text": "Checked In" }, { "value": 12, "text": "Not Approved" }, { "value": 13, "text": "Expired" } ]