Endpoints
- Projects
- Segment usage
- Project defined events
- Events
- Flows
- Employees
- Businesses
- Variables
- Customers
- Segments
- Unsubscribe embeds
- Email templates
- Email template embeds
- Project email templates
- Emails
- Email addresses
- Sms templates
- Sms template embeds
- Sms messages
- Campaigns
- Campaign embeds
- Triggers
- Trigger embeds
- Email blasts
- Project email addresses
- Project phone numbers
- Campaign templates
- Trigger templates
- Phone numbers
- Filter definitions
- Sync
- Reviews
- Review embeds
- Rewards programs
- Members
- Location members
- Locations
- Tiers
- Promotions
- Rewards profiles
- Users
- Embeds
- Feature flags
Triggers
Update a trigger
POST
/
triggers
/
{id}
Copy
curl --request POST \
--url https://api.pocketflows.com/triggers/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"trigger": "<string>",
"name": "<string>",
"email_address": "<string>",
"phone_number": "<string>",
"excluded_customers": [
"<string>"
],
"metadata": {},
"attributed_revenue": 123,
"steps": [
{
"type": "email",
"custom_step_id": "<string>",
"email_template_id": "<string>"
}
]
}'
Copy
{
"id": "<string>",
"name": "<string>",
"trigger": "<string>",
"steps": [
{
"type": "email",
"custom_step_id": "<string>",
"email_template_id": "<string>"
}
],
"status": "draft",
"filter": "<string>",
"email_address": "<string>",
"phone_number": "<string>",
"attributed_revenue": 123
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
The ID of the trigger
Body
application/json
Response
200 - application/json
The updated Trigger
object
The response is of type object
.
Copy
curl --request POST \
--url https://api.pocketflows.com/triggers/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"trigger": "<string>",
"name": "<string>",
"email_address": "<string>",
"phone_number": "<string>",
"excluded_customers": [
"<string>"
],
"metadata": {},
"attributed_revenue": 123,
"steps": [
{
"type": "email",
"custom_step_id": "<string>",
"email_template_id": "<string>"
}
]
}'
Copy
{
"id": "<string>",
"name": "<string>",
"trigger": "<string>",
"steps": [
{
"type": "email",
"custom_step_id": "<string>",
"email_template_id": "<string>"
}
],
"status": "draft",
"filter": "<string>",
"email_address": "<string>",
"phone_number": "<string>",
"attributed_revenue": 123
}
Assistant
Responses are generated using AI and may contain mistakes.