groups:write| Parameter | Type | Description |
|---|---|---|
id | integer | Required. The group ID to update |
| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
name | string | Yes | max:255, unique per tenant (excludes current group) | Group name |
message: "Group updated successfully".| Status | Code | Description |
|---|---|---|
| 404 | NOT_FOUND | Group not found |
| 422 | VALIDATION_ERROR | Validation failed |
| 500 | INTERNAL_ERROR | Failed to update group |
| Field | Message |
|---|---|
name | Group name is required / A group with this name already exists |
curl --location --request PATCH '/groups/1' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Premium VIP Customers"
}'{}