Update a trigger

Applies a partial update. The required type discriminator must identify
the existing trigger kind. The supported types are schedule and
storage_object_created. Editing an inherited trigger creates a
child-local shadow with the same trigger_id; it remains disabled unless
this request explicitly enables it. For a schedule trigger, 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. For storage_object_created, the configuration
selects one exact bucket. An omitted object-key prefix matches every key
in that bucket; a present prefix is matched byte-for-byte and
case-sensitively against the full key, without path normalization or a
path-segment boundary.

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

A numeric five-field cron schedule interpreted in UTC.

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