groups:write| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
name | string | Yes | max:255, unique per tenant | Group name |
message: "Group created successfully".| Field | Type | Description |
|---|---|---|
id | integer | Group ID |
name | string | Group name |
created_at | string | ISO 8601 datetime |
updated_at | string | ISO 8601 datetime |
| Status | Code | Description |
|---|---|---|
| 422 | VALIDATION_ERROR | Validation failed |
| 500 | INTERNAL_ERROR | Failed to create group |
| Field | Message |
|---|---|
name | Group name is required / A group with this name already exists |
curl --location --request POST '/groups' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "VIP Customers"
}'{}