Skip to content

Cancel a delivery

POST
/v1/webhooks/{webhookId}/deliveries/{deliveryId}/cancel
curl --request POST \
--url https://api.roundrobinbot.eu/v1/webhooks/example/deliveries/example/cancel \
--header 'Authorization: Bearer <token>'

Stops one delivery from being tried again. The endpoint stays enabled for every event after it. Cancelling a delivery that has already finished is not an error: the response says so, with cancelled: false, rather than answering a problem for a race any caller can lose. No ETag, like every other route on this controller: a delivery carries no version to hold one against.

webhookId
required
string
deliveryId
required
string

OK

Media typeapplication/json

What a cancel did to one delivery.

object
cancelled

True when this call is the one that stopped the delivery. False when it had already finished.

boolean
Examplegenerated
{
"cancelled": true
}

Bad Request

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Unauthorized

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Forbidden

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/json
object
type
null | string
title
null | string
status
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}