/projects/{project_id}/branches/{branch_id}/triggersCreate a branch trigger
Creates a trigger for a function visible on a branch. Set type to schedule or storage_object_created and provide the matching configuration; schedule expressions use five numeric cron fields interpreted in UTC. The trigger name must be unique among triggers visible on the branch, including inherited triggers.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Trigger creation configuration for a function visible on the branch. Select a trigger type and provide its matching configuration.
The project_id path parameter and branch_id path parameter must each contain 1–60 lowercase letters, numbers, or hyphens. Provide type, function_slug, and name, plus the configuration matching type; type must be schedule or storage_object_created, and name must be 1–256 characters and unique among triggers visible on the branch.