Delete Distance Targeting Geometry

Why Delete Distance Targeting Geometry?

You may find it necessary to remove a distance targeting geometry object from a flight when you want to change the targeting parameters for that flight. The Kevel API enables you to delete a distance targeting geometry object using the DELETE call to the Distance Targeting Geometry API endpoint. When you make this request, the geometry object associated with the flight you specified, using FlightID will be removed from the flight.

API Syntax

When using the Delete Distance Targeting Geometry API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

DELETE https://api.kevel.co/v1/flight/{FlightID}/distance/{GeometryID}

Where:

FlightID

required

The ID of the flight

GeometryID

required

The ID of the Distance Targeting geometry

accept

enum

Defaults to application/json

Generated from available response content types

Allowed:

application/json text/plain

200 200

json

400 400

Example Request

curl -X DELETE -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" https://api.kevel.co/v1/flight/12345/distance/1234

No response body