Skip to main content
PATCH
Update play

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

Play sid (pt_pl_…).

Required string length: 18
Pattern: ^pt_pl_

Body

application/json

Request body of update_play.

name
string

New name of the play (1..255).

Required string length: 1 - 255
audience
any

A new audience, validated like at create; null = the whole tab.

action
object

A find_people play's prompt and cap, the workflow of a people play that waits for one, or a typed action's keys merged deep over the stored ones; the sources are fixed at birth.

watch
object | null

The whole block, or null for nothing.

mode
enum<string>

ask_me (the act waits for approval as a task in the Signals feed) | automatic (it goes out by itself).

Available options:
ask_me,
automatic
cadence
enum<string>

manual switches the play off.

Available options:
manual,
daily
enabled
boolean

The switch: true records the consent (enabled_by, enabled_at) and makes the play due now; false stops the next run, nothing in flight is cancelled.

daily_credit_limit
integer | null

find_people only: the credits one day may spend; null = no ceiling. 422 on an add_to_workflow play.

Required range: x >= 1

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.