Source_create
/sourcesRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
POST /sources body. A source is created detached (attach is a separate
step — POST /sources/{id}/attach, #1293). The read pipeline is supplied
either by naming a built-in template_id (the api expands it into the
AWS pipeline + output_schema) or inline via aws + output_schema
(ADR-0022; source-create 1(a)).
⚠️ deny_unknown_fields, deliberately (one of four write DTOs — see
organization/dto.rs for the documented default and why these four depart
from it): category and kind are dead field names (ADR-0069), and a body
carrying them must be refused for any value — plain field deletion would
silently ignore them, which is exactly the acceptance AC2 forbids.
Response Body
application/json
curl -X POST "https://example.com/sources" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "attached_table_id": "string", "created_at": "string", "cwl_observed_retention": null, "description": "string", "http_credential": null, "id": "string", "ingestion": null, "name": "string", "org_id": "string", "output_schema": [ { "data_type": "string", "description": "string", "name": "string", "nullable": true, "vrl_expression": "string" } ], "owner_team_id": "string", "template_id": "string", "template_version": 0, "updated_at": "string", "warnings": [ "string" ]}