Get Field Options (v1.2)
Changed onReturns the allowed values for one or more fields in a dataset, for use as filter values when querying data via "Get Data from Dataset (v2)". Pass field names in the fields array of the request body; the response is an object keyed by field name, where each value is an array of {id, value} option objects. Optionally supply filters to narrow the returned options (e.g. only options that exist for active employees) and dependentFields when one field's options depend on another field's selected value. Use "Get Fields from Dataset (v1.2)" to discover valid field names for a dataset.
Use this endpoint when you already have dataset field names from get-fields-from-dataset-v1_2 and need valid filter/display options for those specific dataset fields. It is dataset-scoped: field names must be dataset field name values such as jobInformationDepartment, not account list aliases such as department.
Note: Compared to "Get Field Options (v1)", error responses (400, 403) use RFC 7807 application/problem+json format. Unrecognised field names may produce a 500 response with a plain-text body rather than structured JSON.
OAuth Scopes: field
Request
- Base URLhttps://companySubDomain.bamboohr.com
- Auth
- HTTP basic
- or OAuth 2Authorization code/authorize.phpToken URL/token.phpScopesfield
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The name of the dataset you want to see field options for. Use "List Datasets (v1.2)" to discover available dataset names.
Request body
Example request
{
"fields": [
"field_name1",
"field_name2"
],
"dependentFields": {
"field_name1": [
{
"field": "field_name2",
"value": 123
}
]
},
"filters": {
"match": "all",
"filters": [
{
"field": "employee_status",
"operator": "includes",
"value": [
"Active"
]
}
]
}
}Response
An object keyed by field name, where each value is an array of available option objects for that field.
Changes
- info
api operation id
get-field-options-v1-2removed and replaced withget-field-options-v1_2
- info