Update a trigger

Applies a partial update. The required type discriminator must identify
the existing trigger kind; the only currently supported type is
schedule. Editing an inherited trigger creates a child-local shadow
with the same trigger_id; it remains disabled unless this request
explicitly enables it. Updating the schedule or enabled state increments
version and recomputes next_run_at.

Disabling stops future scheduling but does not cancel occurrences already
committed for delivery.

Note: This endpoint is currently in Beta.

Path Params
string
required
^[a-z0-9-]{1,60}$

The Neon project ID

string
required
^[a-z0-9-]{1,60}$

The Neon branch ID

string
required
length between 1 and 128
^[A-Za-z0-9][A-Za-z0-9_.\-]{0,127}$

The opaque, project-wide trigger ID

Body Params
string
enum
required

Trigger type discriminator; it does not change the trigger type.

Allowed:
string
^[a-z0-9]{1,20}$

Replacement branch-local Function slug.

string
length between 1 and 256
string
length between 1 and 2048
schedule
object
boolean

True enables and false disables future scheduling.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json