curl --request PUT \
--url https://{subdomain}.nudj.cx/api/v2/admin/webhooks/configs \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"webhookConfig": [
{
"events": [
"achievement-completion"
],
"url": "<string>",
"httpMethod": "GET",
"isEnabled": true,
"maxRetries": 2,
"headers": {},
"createdAt": "2023-11-07T05:31:56Z",
"entityFilter": {
"entityIds": [
"<string>"
],
"mode": "include"
}
}
]
}
'{
"webhookConfig": [
{
"events": [
"achievement-completion"
],
"url": "<string>",
"httpMethod": "GET",
"isEnabled": true,
"maxRetries": 2,
"headers": {},
"createdAt": "2023-11-07T05:31:56Z",
"entityFilter": {
"entityIds": [
"<string>"
],
"mode": "include"
}
}
]
}Update the webhook configuration for the organisation.
curl --request PUT \
--url https://{subdomain}.nudj.cx/api/v2/admin/webhooks/configs \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"webhookConfig": [
{
"events": [
"achievement-completion"
],
"url": "<string>",
"httpMethod": "GET",
"isEnabled": true,
"maxRetries": 2,
"headers": {},
"createdAt": "2023-11-07T05:31:56Z",
"entityFilter": {
"entityIds": [
"<string>"
],
"mode": "include"
}
}
]
}
'{
"webhookConfig": [
{
"events": [
"achievement-completion"
],
"url": "<string>",
"httpMethod": "GET",
"isEnabled": true,
"maxRetries": 2,
"headers": {},
"createdAt": "2023-11-07T05:31:56Z",
"entityFilter": {
"entityIds": [
"<string>"
],
"mode": "include"
}
}
]
}Was this page helpful?