Skip to main content

Update Source

PUT 

/api/v1/sources/:name

Update a source from a flat revision body.

Before the first deploy, edits update the working version in place. After deploy, a new major version is created only when current equals deployed_version and a table-shaping field changes: schema pins (meta_schema, meta_schema_version, derived_schema, additional_fields), ttl_days, engine, common-header type/version, views, or transform. Draft versions (current not deployed) update in place.

Origin (receiver vs fetcher) cannot change, and a pinned meta_schema cannot be cleared: once a source owns its own table it cannot move back onto main.

A field the body omits keeps its stored value (header, schema, views, transform, transport, archive, aliases, compat_profiles), and null, [] or false clears it. compat_profiles: null returns the source to the deployment's profiles.

A schema pin naming nothing is accepted here so a source can be written before its schema, while /sources/import refuses one because an exported bundle brings every schema it pins.

Request​

Responses​

Successful Response