sources:write| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
name | string | Yes | max:255, unique per tenant | Source name |
message: "Source created successfully".| Field | Type | Description |
|---|---|---|
id | integer | Source ID |
name | string | Source 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 source |
| Field | Message |
|---|---|
name | Source name is required / A source with this name already exists |
curl --location --request POST '/sources' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Website Form"
}'{}