Publish the current draft to an environment
Authentication
X-API-KEYstring
PolyAI API key. Send it in the X-API-KEY header.
Path parameters
agentId
Request
This endpoint expects an object.
deploymentMessage
Message describing this publish
environment
Environment to publish to (defaults to sandbox).
Allowed values:
Response
Successful response
deployment
A deployment of an agent version to a specific environment, plus who created it and when.
testRunIds
IDs of test runs triggered by this deployment action
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error

