Save Deployment
PUT/deploy-svc/deployment
Save a deployment.
Request
- application/json
Body
Save Deploys Request
Array [
]
deployment
object
autoScaling
object
CPU usage threshold for scaling (as a percentage)
Maximum number of replicas to run
Minimum number of replicas to run
DefinitionId is the id of the definition
Description of what this deployment does
Details provides additional information about the deployment's current state, including both success and failure conditions (e.g., "Deployment in progress", "Error pulling image").
ID of the deployment (e.g., "depl_dbOdi5eLQK")
Short name for easy reference (e.g., "user-service-v2")
Number of container instances to run
resources
object
CPU limit, e.g., "500m" for 0.5 cores
Memory limit, e.g., "128Mi"
Optional: GPU VRAM requirement, e.g., "48GB"
Possible values: [OK
, Error
, Pending
, Failed
, Deploying
]
strategy
object
Max extra replicas during update
Max unavailable replicas during update
Possible values: [RollingUpdate
, Recreate
]
Deployment strategy type (RollingUpdate, Recreate, etc.)
targetRegions
object[]
Target deployment regions or clusters
Cluster or node where service should be deployed (e.g., "us-west1", "local-docker")
Optional: Specific zone for the deployment
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}