Create or update a trigger
Changed onCreates a new trigger instance or updates an existing one with the same configuration. Triggers listen for events from external services (webhooks or polling) and can invoke your workflows. If a matching trigger already exists and is disabled, it will be re-enabled. Provide either a connected_account_id to pin a specific user connection, or a user_id to auto-resolve the first active connection for that user and the trigger's toolkit.
Request
- Base URLhttps://backend.composio.dev
- URLhttps://backend.composio.dev/api/v3.1/trigger_instances/{slug}/upsert
- Auth
- API key in header x-api-key
- or API key in header x-user-api-key
Path parameters
The slug of the trigger instance. Case-insensitive (internally normalized to uppercase).
Request body
Example request
{
"version": "latest"
}Response
Successfully upserted trigger instance
Changes
- breaking
the request property
/became not nullable - breaking
the request property
/became not nullable - breaking
the
/request property type changed from no type toobject - info
api operation id
postV3_1TriggerInstancesBySlugUpsertremoved and replaced withpostTriggerInstancesBySlugUpsert - info
added the new optional request property
- info
added the non-success response with the status
- breaking
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning