Create Schedule Trigger
Create a schedule trigger.
cron_expression is evaluated in timezone, which defaults to UTC. target_type is task or task_agent and target_id is that resource’s id. Set expires_at to stop firing after a date.
Authentication
AuthorizationBearer
API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.
OR
AuthorizationBearer
API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.
Path parameters
org_id
The organization ID
project_id
The project ID
Request
This endpoint expects an object.
name
cron_expression
target_type
Target resource type for trigger execution.
target_id
description
status
Lifecycle status for triggers.
timezone
task_input
expires_at
task_agent_revision_id
Response
Schedule trigger created successfully
id
target_type
Target resource type for trigger execution.
target_id
name
status
Lifecycle status for triggers.
cron_expression
timezone
created
modified
created_by_user_id
task_agent_revision_id
trigger_type
description
task_input
next_run_at
last_run_at
expires_at
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error