Apache Airflow · Arazzo Workflow
Apache Airflow Upsert a Variable
Version 1.0.0
Look up an Airflow variable and update it if it exists, otherwise create it, then read the result back.
View Spec
View on GitHub
ApacheDAGData PipelineETLOpen-SourceOrchestrationPythonSchedulingWorkflowsArazzoWorkflows
Provider
Workflows
upsert-variable
Create or update an Airflow variable by key.
Resolves the variable by key, patches it when present and creates it when absent, then reads it back to verify the stored value.
1
lookupVariable
Look the variable up by key. A 200 means it exists and should be patched; a 404 means it must be created. Both outcomes are expected, so both are treated as success and the branch is decided on the status code.
2
updateVariable
Patch the existing variable. The update_mask restricts the write to the value and description fields, and the key in the body must match the key in the path.
3
4
readBackVariable
Read the variable back and require the stored value to match what was sent, closing the loop on either branch.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.