Upsert a Deployment with the Houston API
Upsert a Deployment with configurations
You can use the upsertDeployment
mutation to both create and update Deployments with all possible Deployment configurations. If you query upsertDeployment
without a deploymentUuid
, the Houston API creates a new Deployment according to your specifications. If you specify an existing deploymentUuid
, the Houston API updates the Deployment with that ID. All queries to create a Deployment require specifying a workspaceUuid
.
When you make upsert updates to your Airflow Deployments, you must explicitly specify all existing environment variables, otherwise, the upsert overwrites them.
The following query creates a new Deployment in a custom namespace test-new-dep
and configures a Deployment environment variable AIRFLOW__CORE__COLORED_LOG_FORMAT
.