statuses:write| Parameter | Type | Description |
|---|---|---|
id | integer | Required. The status ID to update |
| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
name | string | Yes | max:255, unique per tenant (excludes current status) | Status name |
color | string | No | max:7, hex format #RRGGBB (regex: /^#[0-9A-Fa-f]{6}$/) | Display color |
message: "Status updated successfully".| Status | Code | Description |
|---|---|---|
| 404 | NOT_FOUND | Status not found |
| 422 | VALIDATION_ERROR | Validation failed |
| 500 | INTERNAL_ERROR | Failed to update status |
| Field | Message |
|---|---|
name | Status name is required / A status with this name already exists |
color | Color must be a valid hex color code (e.g., #FF5733) |
curl --location --request PATCH '/statuses/1' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Updated Status Name",
"color": "#00FF00"
}'{}