Skip to main content
PUT
/
webhooks
/
configs
Update webhook configurations
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"
      }
    }
  ]
}

Authorizations

x-api-token
string
header
required

Body

application/json
webhookConfig
Webhook Configuration · object[]
required

Response

Successful response

webhookConfig
Webhook Configuration · object[]
required