Issues With Triggering Campaigns App With An Alert

I've been following along with https://domohelp.domo.com/hc/en-us/articles/1500000316201-Triggering-a-Campaign-from-a-Domo-DataSet-Alert#2.2.
I am currently at the point of testing the POST to the API in the WebHook and I am getting the Error:
{
"status": 400,
"error": "Bad Request",
"path": "/api/v1/campaigns/bae/start"
}
Below is my current JSON Included in the WebHook:
{
"campaignId": CampaignNum,
"instance": "Instance",
"domoAccessToken": "AccessToken",
"domoAccessTokenOwnerEmailAddress": "Email",
"emailAddresses": ["Email" ],
"isTest": true
}
I've found that I could POST the previous JSON to https://campaigns-prod.domolabs.io/api/v1/campaigns/start while testing the API on another program, but I am not able to get a successful POST while using the Domo WebHook.
I've also tried to POST to https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start, but I have also only gotten the error from above.
Best Answer
-
I figured it out with support. The issue I was having was the "Send Test" in Domo's Test Environment was throwing an error when trying to POST to https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start. Although the test environment was throwing an error the webhook still did a successful POST when the alert was triggered.
0
Answers
-
I figured it out with support. The issue I was having was the "Send Test" in Domo's Test Environment was throwing an error when trying to POST to https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start. Although the test environment was throwing an error the webhook still did a successful POST when the alert was triggered.
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive