How can I debug API triggers?
I got 202 and trigger history is empty.
This API workflows:trigger
is deprecated. If you are using post-action trigger, the format of parameter triggerWorkflows
you are using is not correct.
According to the doc of post-action event, your API could be like:
# format
{{baseUrl}}/<some-collection-name>:<create/update>?triggerWorkflows=<workflow-key>[!<association-name>]
# example 1 (context on post)
/api/posts:create?triggerWorkflows=dj2d8k29
# example 2 (context not on post, but on some association of post)
/api/posts:update?triggerWorkflows=i23dlwe!category
If you are using custom action event, the API could be like:
# format
{{baseUrl}}/<some-collection-name>:trigger?triggerWorkflows=<workflow-key>[!<association-name>]
# example 1 (context on post)
/api/posts:trigger?triggerWorkflows=cci2kv83
# example 2 (context not on post, but on some association of post)
/api/posts:trigger?triggerWorkflows=po92cj21!category