Loading...

DELETE /api/zones/{zoneId}

When a depot closes, you can remove its zone from the account catalogue so it disappears from the available places. A zone is the shape saved on the map. Trackers already assigned to it can continue to use it after it leaves the catalogue.

Select the zone by its public ID and check the confirmation. If the vehicles should also stop generating alerts for that site, save their assignments again with all the zones they should keep, leaving out the depot zone.

Request Details

HTTP method DELETE
Path /api/zones/{zoneId}

The example identifiers are fictional. Use the identifiers returned by your account’s list for the resource you want to look up or change.

Request Parameters

ParameterTypeRequiredDescription
zoneIdStringRequiredStringYesPath parameter. Replace {zoneId} with the full ID returned by GET /api/zones. Send the request without a body.

Authentication Required

You need map access with a non-demo user. The zone must belong to the account.

Send a valid bearer token in the Authorization header. See Authentication.

Example Request

DELETE /api/zones/{zoneId} HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token}

Response Parameters

The Presence column describes an HTTP 200 response. Conditional fields are omitted when they have no value.

success: true confirms the release. To remove the zone from particular devices, use PUT /api/zones with the list those devices should keep.

FieldTypePresenceDescription
successBooleanAlwaysBooleanAlwaysSet to true on success.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAccount usage for the day before this request is added.

Example Successful Response

HTTP 200.

{ "success": true, "apiUsage": 1, "apiDailyUsage": 24 }

Errors

HTTP statusWhen it occurs
400If the identifier is invalid, the zone has already been released, or it does not belong to the account. If the request quota has been reached, error contains the reason.
401A valid bearer token is missing.
403If map access is missing or the user is a demo user.
500An unexpected error occurred while processing the request.

In an error response that includes success, its value is false and error contains the message.

Example Error Response

{ "success": false, "error": "The zone was not found in the account." }
Index
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:53:37