Update Group Attribute Value
Update the value of a user attribute already set on a group.
Only value is mutable; to point at a different definition, delete this value and create a new one.
Returns 400 if value doesn't match the existing definition's data_type format: YYYY-MM-DD for date, a numeric string for number.
patch/workspaces/{workspace_id}/groups/{group_id}/user_attributes/{user_attribute_id}
Authorizations
AuthorizationstringRequired
A Personal Access Token (PAT).
Path parameters
workspace_idstringRequired
group_idstringRequired
user_attribute_idstringRequired
Body
valuestringRequired
Must match the existing definition's data_type format: "string" allows free text, "number" requires a parseable number, "date" requires YYYY-MM-DD.
Responses
200
Successful Response
application/json
4XX
Client Error
application/json
5XX
Server Error
application/json
patch/workspaces/{workspace_id}/groups/{group_id}/user_attributes/{user_attribute_id}
curl -L -X PATCH https://api-external.zenlytic.com/api/v2/workspaces/<workspace_id>/groups/<group_id>/user_attributes/<user_attribute_id> \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"value": "east"}'
{
"data": {
"id": "ua_789",
"user_attribute_definition_id": "uad_123",
"value": "east",
"data_type": "string",
"name": "region",
"source": "group",
"source_id": "grp_123",
"user_attribute_precedence": 1,
"is_overridden": false
},
"meta": {
"status": "success",
"errors": [],
"warnings": []
}
}Last updated
Was this helpful?

