Skip to main content
PATCH
Update agent scenario

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Path Parameters

sid
string
required

ub_sc_ sid or key: interested, meeting_request, info_request, referral, not_now, out_of_office, auto_reply, wrong_person, reschedule_request, cancel_request, other_low_signal, not_interested, objection, do_not_contact, followup_no_reply, signal_followup.

Required string length: 1 - 64

Body

application/json

Request body of update_agent_scenario.

agent_sid
string

The AI SDR whose scenario it is (ub_ag_…); with a platform key, which agent's version. Left out, the team's default agent.

Required string length: 18
Pattern: ^ub_ag_
title
string

The team's own scenario only: a platform scenario's name is the platform's (422).

Required string length: 1 - 255
trigger
string

The team's own scenario only (422 on a platform scenario).

Required string length: 1 - 2048
context
string | null

The instructions over the playbook; null clears them.

Maximum string length: 32768
steps
object[] | null

FULL-REPLACE of the step list: on a platform scenario the fork (null drops it, the seed applies again; a locked step stays on, as it is); on the team's own scenario its steps.

Maximum array length: 16
level
enum<string>

The level: autopilot, copilot, conditional (with conditions) or off. On a platform key the first edit bears the team's row; reset_agent_scenario puts the seed's level back.

Available options:
autopilot,
copilot,
conditional,
off
conditions
object[] | null

FULL-REPLACE of a Conditional level's conditions, in order (at most 6); null clears them. Read on every reply: the first that holds decides, Autopilot otherwise.

Maximum array length: 6

Response

update success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
update
item
object
required
updated_fields
string[]
required
previous_values
object
required
meta
object
required
kept_fields
string[]

The fields this write did not change because the person's own value stands on them (stamped person); read the item for what landed.