Creates a subscription linking a job or workflow to an event source.
curl --request POST \
--url https://api.strait.dev/v1/event-sources/{sourceID}/subscribe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_id": "<string>",
"target_type": "<string>",
"enabled": true,
"filter_expr": "<unknown>"
}
'{
"created_at": "2023-11-07T05:31:56Z",
"enabled": true,
"id": "<string>",
"source_id": "<string>",
"target_id": "<string>",
"target_type": "<string>",
"$schema": "<string>",
"filter_expr": "<unknown>"
}Documentation Index
Fetch the complete documentation index at: https://docs.strait.dev/llms.txt
Use this file to discover all available pages before exploring further.
API key passed as Bearer token
OK
curl --request POST \
--url https://api.strait.dev/v1/event-sources/{sourceID}/subscribe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"target_id": "<string>",
"target_type": "<string>",
"enabled": true,
"filter_expr": "<unknown>"
}
'{
"created_at": "2023-11-07T05:31:56Z",
"enabled": true,
"id": "<string>",
"source_id": "<string>",
"target_id": "<string>",
"target_type": "<string>",
"$schema": "<string>",
"filter_expr": "<unknown>"
}