Import Source
POST/api/v1/sources/import
Import a source bundle exported from another deployment.
The bundle's meta-schema definitions are written first, then the source, both
through the registries that commit to git. A definition marked
resource_type: core is resolved against what dfe-schemas already put here
and never written, so the read-only schema is not forked.
Every check runs before the first write: a bundle applied halfway would leave
the source's schema pins with no definitions behind them. A schema pin, or a
version it pins, that neither the bundle nor this deployment defines is a 422
unresolved_reference.
Request
Responses
- 201
- 401
- 403
- 409
- 422
Successful Response
No valid session: the credentials are missing, invalid or expired, or the account behind them is disabled or blocked
Refused: the session lacks the action this route checks, or its account must replace an issued password first
The source name already exists here, or a meta schema the bundle carries would land on an occupied path (code conflict)
Validation Error