Create WebhookSubscription
Request
Body Params application/vnd.api+json
{
"data": {
"type": "WebhookSubscription",
"attributes": {
"eventName": "assignment.complete",
"targetUrl": "string",
"basicAuth": {
"username": "string",
"password": "string"
},
"active": true
},
"relationships": {}
}
}
Request Code Samples
curl --location --request POST 'https://api.synap.ac/v3/webhook-subscriptions' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "WebhookSubscription",
"attributes": {
"eventName": "assignment.complete",
"targetUrl": "string",
"basicAuth": {
"username": "string",
"password": "string"
},
"active": true
},
"relationships": {}
}
}'
Responses
{
"data": {
"id": "FID001",
"type": "WebhookSubscription",
"attributes": {
"eventName": "assignment.complete",
"targetUrl": "string",
"basicAuth": {
"username": "string",
"password": "string"
},
"active": true
},
"relationships": {}
}
}
Modified at 2025-09-15 09:58:55