Editar

Partilhar via


Delete subscriptions

Deletes a subscriptions object for Business Central.

Custom APIs

If you're subscribing to a custom API page, both the URL you send the subscription HTTP request to and the resource path you wish to subscribe to must include the <APIPublisher>, <APIGroup>, and <APIVersion> elements equivalent to: api/<APIPublisher>/<APIGroup>/<APIVersion>/subscriptions. For example, if your API publisher is pub, your API group is grp, and the version is 1.0, part of the URL will contain these elements api/pub/grp/v1.0/subscriptions.

HTTP request

Replace the URL prefix for Business Central depending on environment following the guideline.

DELETE businesscentralPrefix/subscriptions({'id'})

Request headers

Header Value
Authorization Bearer {token}. Required.
If-Match Required. When this request header is included and the eTag provided does not match the current tag on the subscription, the subscription will not be updated.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code.

Example

Request

Here is an example of the request.

DELETE https://{businesscentralPrefix}/api/v1.0/subscriptions({'id'}) 

Response

No response body.

Tips for working with the APIs
Subscriptions
Get subscriptions
Create subscriptions
Update subscriptions