Skip to main content
PATCH
/
v1
/
automations
/
triggers
/
{triggerEventId}
Update a trigger
curl --request PATCH \
  --url https://brew.new/api/v1/automations/triggers/{triggerEventId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "User Signed Up (v2)"
}
'
{
  "triggerEventId": "tri_signup",
  "title": "User Signed Up",
  "description": "Fires when a user completes signup.",
  "provider": "brew_api",
  "payloadSchema": {
    "type": "object",
    "fields": [
      {
        "key": "email",
        "type": "string",
        "required": true
      },
      {
        "key": "firstName",
        "type": "string",
        "required": false
      }
    ]
  },
  "createdAt": "2026-04-08T12:00:00.000Z",
  "updatedAt": "2026-04-08T12:00:00.000Z"
}

Authorizations

Authorization
string
header
default:Bearer brew_your_api_key
required

Send your Brew API key as Authorization: Bearer brew_xxx.

Path Parameters

triggerEventId
string
required

Trigger id returned by POST /v1/automations/triggers. Custom triggers use tri_… ids; integration triggers use composite ids (e.g. clerk:org_…:brand_…:user.created, URL-encode the colons).

Required string length: 1 - 256
Example:

"tri_signup"

Body

application/json
title
string
Required string length: 1 - 120
description
string
Maximum string length: 2000
payloadSchema
object

Response

Updated.

triggerEventId
string
required
Required string length: 1 - 256
title
string
required
Required string length: 1 - 120
provider
enum<string>
required
Available options:
brew_api,
clerk,
stripe,
shopify,
stytch,
supabase,
workos,
revenuecat,
custom
payloadSchema
object
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
description
string
Maximum string length: 2000
providerEventKey
string