Skip to content
Wazapin
Esc
navigateopen⌘Jpreview

Patch Playbook Draft (optimistic revision)

PATCH/v1/ai/agents/{agentID}/playbooks/{playbookID}/draft
Authorization
sessionsessionrequired
Path parameters
agentIDstringrequired
playbookIDstringrequired
Request body
requiredapplication/json
authoring_sourceany
descriptionstring
namestring
revisioninteger<int64>required
Responses
200OK
agent_idstringrequired
authoring_sourceAuthoringSourcerequired
Show properties
documentAuthoringDocumentrequired
Show properties
jsonany
textstring
typestringrequired
execution_modestringrequired
guardrailsany[] | null
legacyobject
outcomeAuthoringOutcomerequired
Show properties
goalstringrequired
terminal_outcomesstring[] | nullrequired
schema_versioninteger<int64>required
settingsAuthoringSettingsrequired
Show properties
max_playbook_call_depthinteger<int64>required
max_retries_per_stepinteger<int64>required
max_stepsinteger<int64>required
success_checksany[] | null
triggerAuthoringTriggerrequired
Show properties
conditionsobject[] | nullrequired
examplesstring[] | nullrequired
created_atstringrequired
descriptionstring
last_validationany
namestring
organization_idstringrequired
plain_instructionsstringrequired
playbook_idstringrequired
revisioninteger<int64>required
schema_versioninteger<int64>required
source_hashstringrequired
statusstring
updated_atstringrequired
400Bad Request
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
401Unauthorized
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
403Forbidden
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
404Not Found
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
409Conflict
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
422Unprocessable Entity
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
500Internal Server Error
errorErrorBodyrequired
Show properties
codestringrequired
detailsErrorDetail[] | null
Show properties
Array of ErrorDetail
codestring
fieldstring
locationstring
messagestringrequired
messagestringrequired
request_idstring
Request
curl -X PATCH "/v1/ai/agents/string/playbooks/string/draft" \
  -H "Content-Type: application/json" \
  -d '{
  "authoring_source": "string",
  "description": "string",
  "name": "string",
  "revision": 0
}'
Response
{
  "agent_id": "string",
  "authoring_source": {
    "document": {
      "json": "string",
      "text": "string",
      "type": "string"
    },
    "execution_mode": "string",
    "guardrails": [
      "string"
    ],
    "legacy": {},
    "outcome": {
      "goal": "string",
      "terminal_outcomes": [
        "string"
      ]
    },
    "schema_version": 0,
    "settings": {
      "max_playbook_call_depth": 0,
      "max_retries_per_step": 0,
      "max_steps": 0
    },
    "success_checks": [
      "string"
    ],
    "trigger": {
      "conditions": [
        {}
      ],
      "examples": [
        "string"
      ]
    }
  },
  "created_at": "string",
  "description": "string",
  "last_validation": "string",
  "name": "string",
  "organization_id": "string",
  "plain_instructions": "string",
  "playbook_id": "string",
  "revision": 0,
  "schema_version": 0,
  "source_hash": "string",
  "status": "string",
  "updated_at": "string"
}