Trigger for testing

POST /advertising/v1.0/webhooks/{webhookId}/test

Endpoint for testing webhooks. If you call it, it will send a request to the URL defined in the webhook configuration with a fake data payload.

Path parameters

  • webhookId string Required
application/json

Body

  • adId string

    Id of an advertisement. It is either id that was provided in the response of the insert endpoint or it can be thirdPartyId, if it has been provided in the request body of the advertisement insert endpoint.

Responses

  • 200 application/json

    Webhook successfully triggered

    Hide response attribute Show response attribute object
    • success boolean Required
  • 404

    Webhook was not found.

POST /advertising/v1.0/webhooks/{webhookId}/test
curl \
 --request POST 'http://apis.public-staging.reas.cz/advertising/v1.0/webhooks/{webhookId}/test' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"adId":"63d9007e66fc41b2cd1057c6"}'
Request examples
{
  "adId": "63d9007e66fc41b2cd1057c6"
}
Response examples (200)
{
  "success": true
}