Dynamic Workflow Trigger
Changed onAPI to dynamically create and trigger a single step workflow.
post/{workspace_key}/trigger/
Request
- Base URLhttps://hub.suprsend.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspace_keystring required
Request body
Example request
{
"users": [
{
"$slack": [
{
"email": "user@example.com",
"access_token": "xoxb-XXXXXXXX"
}
],
"$ms_teams": [
{
"tenant_id": "c1981ab2-9aaf-xxxx-xxxx",
"service_url": "https://smba.trafficmanager.net/amer",
"conversation_id": "19:c1524d7c-a06f-456f-8abe-xxxx"
}
]
}
],
"data": {
"$attachments": [
{
"url": "https://bitcoincore.org/bitcoin.pdf",
"filename": "billing.pdf"
}
]
}
}Response
202
Changes
- breaking
removed the media type
application/jsonfor the response with the status - breaking
removed the media type
application/jsonfor the response with the status - info
the
request property format was generalized fromdatetodate-time - info
added the media type
text/plainfor the response with the status - info
added the media type
text/plainfor the response with the status
- breaking
- warning
removed the request property
///// - warning
removed the request property
///// - warning
removed the request property
/////
- warning