Deployments
Create Deployment
Changed onGracefully 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.
post/api/deployments/
Request
- The document declares no server URL.
- Authnone declared
Headers
x-prefect-api-versionstring
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
- info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info