{
"data": {
"type": "WebhookSubscription",
"attributes": {
"eventName": "assignment.complete",
"targetUrl": "string",
"basicAuth": {
"username": "string",
"password": "string"
},
"active": true
},
"relationships": {}
}
}
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": {}
}
}'
{
"data": {
"id": "FID001",
"type": "WebhookSubscription",
"attributes": {
"eventName": "assignment.complete",
"targetUrl": "string",
"basicAuth": {
"username": "string",
"password": "string"
},
"active": true
},
"relationships": {}
}
}