Skip to main content
POST
Revert a document to an earlier version

Authorizations

Authorization
string
header
required

The session token of an admin of your company. Company API, partner and droplet installation tokens are refused.

Path Parameters

bot_id
string<uuid>
required

The bot's id.

kind
enum<string>
required

Which document, persona (who the bot is, its tone, preferences and how it works) or memory (its notes, what it did and what it learned).

Available options:
persona,
memory

Body

application/json
document
object
required

The version to go back to.

Response

The new version, restoring the earlier one.

document
object
required
status
integer
required

The HTTP status.

meta
object
required

Response metadata on every body. List endpoints add pagination.