Send a test
const url = 'http://localhost:3000/api/v1/automations/example/test';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/automations/example/test \ --header 'Authorization: Bearer <token>'Send it now, on or off, with a sample event: for brand.released its brand’s latest release (the default brand’s for any brand), for asset.expiring the approved asset whose license ends soonest, else the newest; for governance the latest audit entry it takes, else one made up; for check.refused that asset; for fix.opened the first open Fix of its kind, else a made-up search; for review.waiting the oldest proposal, else the oldest asset. What it sends says test: true. One attempt, never tried again, kept in the run log marked as a test. A 422 when there is nothing to make a sample from.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Automation id
Responses
Section titled “Responses”The run, delivered or failed
object
object
Pending: delivering, or failed and tried again at nextAt; failed: after 3 attempts
What the webhook posts, and what the email says
object
Sent by Send a test (POST /api/v1/automations/{id}/test), with a sample event: its payload says test: true too
Example
{ "data": { "status": "pending" }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}