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