Deploy a service, roll back to an earlier deployment, or retry a failed one.
API key access: deploy.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
application/jsonDeploy a service, roll back to an earlier deployment, or retry a failed one.
API key access: deploy.
op*"deploy""deploy"serviceId*stringdeploymentId*stringA new id you choose: dpl_ then 4 to 40 lowercase letters, digits, dashes or underscores.
trigger*stringWhat started it, shown in the history: "manual" (also for anything else), "redeploy", "rollback", "retry" or "config_change".
rollbackOf?|The deployment to go back to.
retryOf?|The failed deployment to try again.
Done. Always ok: true, and some operations add more, such as a new API key or a join command. A warning comes with a change that went through but won't fully take effect yet, such as more replicas than the servers have room for.
application/jsoncurl -X POST 'https://your-pyo.example.com/api/v1/ops' \
-H 'Content-Type: application/json' \
-d '{
"deploymentId": "dpl_8kq2x7ad",
"op": "deploy",
"serviceId": "svc_8kq2x7ad",
"trigger": "manual"
}'{}