Skip to main content
POST
Roll back to an earlier version

Authorizations

Authorization
string
header
required

Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.

Path Parameters

projectId
string
required

Project id

id
string
required

Agent id

versionId
string
required

Id of an outdated version, from GET .../agents/{id}/versions.

Response

The version is live again. warnings is present only when the agent's language model could not be confirmed as currently available.

publishedVersion
object
required

The full configuration of one agent version, with the tools and dictionaries attached to it as they were when the version was saved. Fields not listed here may also be present.

outdatedVersion
object | null

The version that was live before, now outdated; null when there was none.

warnings
object[]

Present only when there is something to report. The publish succeeded.