Update an existing trigger.
Only provided fields are updated. Returns the updated trigger.
Returns: Updated trigger.
Raises: NotFoundError: If trigger not found or belongs to another org.
Request body for updating an agent trigger.
All fields are optional. Only provided fields are updated.
Attributes: target_organization_id: Updated target organization for cross-org event watching. event_filters: Updated event filters. cron_expression: Updated cron expression. is_main_agent: Updated main agent flag. enabled: Updated enabled state.
Successful Response
Configuration for triggering an agent via events, schedules, or conversations.
Attributes: id: SurrealDB record ID (populated by database). organization_id: Tenant that owns the trigger and the agent resource. target_organization_id: Organization whose events this trigger watches. When set, the trigger fires on events from this org but the agent resource lives in organization_id. When None, watches organization_id. agent_resource_id: SurrealDB ID of the agno agent resource. runner_resource_id: SurrealDB ID of the agno runner resource. trigger_type: How this trigger fires. event_filters: Filters for matching lifecycle events (event triggers only). cron_expression: Cron schedule expression (schedule triggers only). is_main_agent: Whether this is the org's main conversation agent. enabled: Whether the trigger is active. created_at: When the trigger was created. updated_at: When the trigger was last modified.
Types of agent triggers.
event, schedule, conversation