Skip to main content
POST
/
v1
/
agents
/
{agentId}
/
deployments
/
{deploymentId}
/
promote
Promote a deployment to the next environment
curl --request POST \
  --url https://api.us.poly.ai/v1/agents/{agentId}/deployments/{deploymentId}/promote \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "deploymentMessage": ""
}
'
{
  "deployment": {
    "id": "<string>",
    "accountId": "<string>",
    "agentId": "<string>",
    "environment": "<string>",
    "artifactVersion": "<string>",
    "version": "<string>",
    "createdBy": "<string>",
    "createdAt": "<string>",
    "metadata": {}
  },
  "testRunIds": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.poly.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Path Parameters

agentId
string
required
deploymentId
string
required

Body

application/json
deploymentMessage
string
default:""
targetEnvironment
enum<string>
Available options:
pre-release,
live

Response

Promoted deployment with triggered test run IDs

deployment
object
required
testRunIds
string[]
required
Last modified on June 1, 2026