I have an API Management service
that I would like to call an Azure pipeline when changes occur in the APIM.
The Event in APIM allows the creation of a webhook through EventGrid
. however, I am looking at how to call the endpoint with the empty JSON payload.
According to Runs - Run Pipeline we can run the pipeline through RestApi. I am configuring this endpoint with the correct headers.
From Postman
I can call the Run Pipeline endpoint with the below;
curl --location --request POST 'https://dev.azure.com/organization/project/_apis/pipelines/pipelineId/runs' \
--header 'Accept: api-version=7.0' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic PAT'
--data '{}'
In the APIM => Create Event Subscription => Delivery Properties Custom delivery properties of EventGrid, I couldn't find a way to add an empty payload. This empty payload is required while sending a request from the Postman.
So how to add an empty payload to the request as above in the EventGrid Webhook?