Skip to main content
POST
Restore a commit

Authorizations

Authorization
string
header
required

Enter your API key (Bearer token)

Headers

Idempotency-Key
string

Optional. A retry with the same key and body returns the first response instead of doing the work twice.

Path Parameters

id
string
required

Agent id (UUID).

vid
string
required

Version id (UUID).

Body

application/json
commit_id
string<uuid>
required

A commit from this version, as list_agent_version_history returns it.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
discard_draft
boolean

Throw away the draft first. Without it a draft returns draft_pending.

Response

agent_id
string
required
created_at
string
required
description
string | null
required
draft_pending
boolean
required
head_commit
object | null
required
id
string
required
is_live
boolean
required
name
string
required
revision
string | null
required
status
string
required
changed_fields
string[]
draft
object | null
next_action
object
try_it
object

Ways to hear the live agent now. Left out when nothing is callable.

warnings
object[]