Member Attributes
The HR attribute fields that your organization has marked as filterable, such as country or job level. Use a member attribute's id as the id of a member_attributes filter entry on the reporting endpoints, to report on only the members who hold the attribute values you name. List a member attribute's values to get the value ids for the entry. exportable tells you whether the field is also a column in the member CSV downloads. With exportable=true, the list has only the fields that are filterable and exportable. A field that is exportable but not filterable is not listed.
list member attributes
Returns your organization's filterable member attributes, ordered by field_name. Pass a member attribute's id as the id of a member_attributes filter entry on the reporting endpoints.
Requires any one of
api:partner:reporting:read api:partner:reporting:write
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | optional | Page number for pagination |
| per_page | integer | optional | Records per page |
| exportable | boolean | optional | true returns only the fields that are also exportable; false returns only the fields that are not. Omit it to return every filterable field. |
Responses
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | optional | |
| data | Reporting.MemberAttribute[] | optional | |
| data[].id | string | required | |
| data[].exportable | boolean | required | Whether the field is also a column in the member CSV downloads. |
| data[].field_name | string | required | The name of the field in your organization's HR data. It is unique in your organization. |
| data[].kind | string | required | |
| data[].name | string | required | The display name of the field, or its field name when it has no display name. |
| data[].related_links | object | optional | |
| pagination_metadata | PaginationMetadata | optional | Pagination metadata for the response. |
| pagination_metadata.next_page_params | map<string, any> | null | required | Query params for the next page. Merge them into the params of this request. Null on the last page. |
| pagination_metadata.next_page_url | string | null | required | |
| pagination_metadata.page | integer | required | |
| pagination_metadata.per_page | integer | required | |
| pagination_metadata.previous_page_params | map<string, any> | null | required | Query params for the previous page. Merge them into the params of this request. Null on the first page. |
| pagination_metadata.previous_page_url | string | null | required | |
| pagination_metadata.total_records | integer | null | required |
curl -X GET "https://api.betterup.co/partner/reporting/member_attributes" \
-H "Authorization: Bearer <access_token>"{
"url": "<url>",
"data": [
{
"id": "<id>",
"exportable": true,
"field_name": "<field_name>",
"kind": "<kind>",
"name": "<name>",
"related_links": {}
}
],
"pagination_metadata": {
"next_page_params": {
"<key>": {}
},
"next_page_url": "<next_page_url>",
"page": 0,
"per_page": 0,
"previous_page_params": {
"<key>": {}
},
"previous_page_url": "<previous_page_url>",
"total_records": 0
}
}list member attribute values
Returns the values that the members you can report on hold now for one member attribute, ordered by value. Pass a value's id in the value list of a member_attributes filter entry whose id is this member attribute. A member attribute that is not in your member attributes list returns 404.
Requires any one of
api:partner:reporting:read api:partner:reporting:write
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| member_attribute_id | string | required | The member attribute id, as the member attributes list returns it |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | optional | Page number for pagination |
| per_page | integer | optional | Records per page |
Responses
Response fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | optional | |
| data | Reporting.MemberAttributeValue[] | optional | |
| data[].id | string | required | |
| data[].kind | string | required | |
| data[].related_links | object | optional | |
| data[].value | string | required | The attribute value, as it appears in your HR data. |
| pagination_metadata | PaginationMetadata | optional | Pagination metadata for the response. |
| pagination_metadata.next_page_params | map<string, any> | null | required | Query params for the next page. Merge them into the params of this request. Null on the last page. |
| pagination_metadata.next_page_url | string | null | required | |
| pagination_metadata.page | integer | required | |
| pagination_metadata.per_page | integer | required | |
| pagination_metadata.previous_page_params | map<string, any> | null | required | Query params for the previous page. Merge them into the params of this request. Null on the first page. |
| pagination_metadata.previous_page_url | string | null | required | |
| pagination_metadata.total_records | integer | null | required |
curl -X GET "https://api.betterup.co/partner/reporting/member_attributes/<member_attribute_id>/values" \
-H "Authorization: Bearer <access_token>"{
"url": "<url>",
"data": [
{
"id": "<id>",
"kind": "<kind>",
"related_links": {},
"value": "<value>"
}
],
"pagination_metadata": {
"next_page_params": {
"<key>": {}
},
"next_page_url": "<next_page_url>",
"page": 0,
"per_page": 0,
"previous_page_params": {
"<key>": {}
},
"previous_page_url": "<previous_page_url>",
"total_records": 0
}
}