Skip to main content
POST
Create function triggers

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

functionId
string
required

Zavu Function ID.

Body

application/json
eventTypes
string[]
required

Event types to subscribe to.

senderIds
(string | null)[]
required

Senders to scope the triggers to. Use null for all senders.

cron
string

Required when eventTypes includes cron: a 5-field cron expression (minute hour day-of-month month day-of-week), evaluated in UTC.

Example:

"0 9 * * 1-5"

Response

Triggers created.

added
integer
required
skipped
integer
required

Number of triggers that already existed.

triggers
object[]
required