Create Deployment
Gracefully creates a new deployment from the provided schema. If a deployment with the same name and flow_id already exists, the deployment is updated.
If the deployment has an active schedule, flow runs will be scheduled. When upserting, any scheduled runs from the existing deployment will be deleted.
Headers
Request body
Example request
{
"name": "my-deployment",
"schedules": [
{
"schedule": {
"timezone": "America/New_York"
}
}
],
"tags": [
"tag-1",
"tag-2"
],
"work_pool_name": "my-work-pool",
"schedule": {
"timezone": "America/New_York"
}
}Response
Successful Response
Example response
{
"schedule": {
"timezone": "America/New_York"
},
"schedules": [
{
"schedule": {
"timezone": "America/New_York"
}
}
],
"tags": [
"tag-1",
"tag-2"
]
}Changes
Changed in 5 of the 50 revisions of this API.314
- ○
added the new optional request property
schedules/items/catchupnew-optional-request-property
- ○
added the new optional request property
schedules/items/max_active_runsnew-optional-request-property
- ○
added the new optional request property
schedules/items/max_scheduled_runsnew-optional-request-property
- ○
added the optional property
schedules/items/catchupto the response with the200statusresponse-optional-property-added
- ○
added the optional property
schedules/items/max_active_runsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
schedules/items/max_scheduled_runsto the response with the200statusresponse-optional-property-added
- ○
- ○
added the new optional request property
job_variablesnew-optional-request-property
- ○
added the optional property
job_variablesto the response with the200statusresponse-optional-property-added
- ○
- ▲
the request property
flow_idbecame requiredrequest-property-became-required
- ▲
the request property
namebecame requiredrequest-property-became-required
- ▲
the request property
schedules/items/schedulebecame requiredrequest-property-became-required
- ▲
- ○
the response property
flow_idbecame required for the status200response-property-became-required
- ○
the response property
namebecame required for the status200response-property-became-required
- ○
- ○
added the new optional request property
pausednew-optional-request-property
- ○
added the new optional request property
schedulesnew-optional-request-property
- ○
added the optional property
pausedto the response with the200statusresponse-optional-property-added
- ○
added the optional property
schedulesto the response with the200statusresponse-optional-property-added
- ○