/api/public/v1/groups/{id}groups.update
Rename a group with the revision you last read (groups.list); names are unique, case-insensitive.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
idpath | string (uuid) | Yes | Group id |
command_idbody | string (uuid) | Yes | Client-generated UUID for this command. Send the same id (and body) again to get the stored receipt instead of a second change; a different body under the same id is CONFLICT. |
expected_revisionbody | integer | Yes | The revision you last read; a newer revision on the server is CONFLICT (min 1, max 9007199254740991) |
namebody | string | Yes | (min length 1, max length 60) |
Examples
curl -X PATCH "https://browlix.com/api/public/v1/groups/<id>" \
-H "Authorization: Bearer $BROWLIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"command_id":"<uuid>","expected_revision":1,"name":"<name>"}'Response
201 with { data, replayed: false, correlation_id } the first time; 200 with replayed: true when the same command_id and body come again.
| Field | Type | Always present | Description |
|---|---|---|---|
| data | object | Yes | |
| data.group_id | string (uuid) | Yes | |
| data.revision | integer | Yes | The group's new revision (min -9007199254740991, max 9007199254740991) |
| correlation_id | string (uuid) | Yes | |
| replayed | boolean | No | true when this command_id was already applied and the stored receipt came back |
Errors
| Code | HTTP | Retryable |
|---|---|---|
| UNAUTHENTICATED | 401 | No |
| FORBIDDEN | 403 | No |
| RATE_LIMITED | 429 | Yes |
| VALIDATION_FAILED | 422 | No |
| NOT_FOUND | 404 | No |
| CONFLICT | 409 | No |
| OUTCOME_UNKNOWN | 202 | Yes |
| DEPENDENCY_UNAVAILABLE | 503 | Yes |
| UNKNOWN | 500 | No |
