Skip to main content
PATCH
Edit or enable/disable a prompt

Authorizations

Authorization
string
header
required

An API key from the Account tab, sent as Authorization: Bearer agl_live_.... Keys are secret; store them server-side.

Path Parameters

id
string<uuid>
required

Brand id (UUID). A value that is not a UUID returns 404.

promptId
string<uuid>
required

Prompt id (UUID). A value that is not a UUID returns 404.

Body

application/json

Provide text, active, or both.

text
string
Maximum string length: 300
active
boolean

false disables (soft-delete); true re-enables.

Response

The updated prompt.

prompt
object
required