Delete a license
Deletes a license.
DELETE /v1/licenses/{license}
Use cases
- Remove a license that was issued by mistake.
- Remove the licenses that a test run created.
- Remove a license when a customer asks you to delete their data.
Authentication
Send an API key. This endpoint requires the scope licenses:write. See Authentication and Scopes.
An integration that is limited to one product can delete only the licenses of that product. See Product.
Request
Path parameters
| Parameter | Type | Description |
|---|---|---|
license | string | The ID of the license. |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | The word Bearer, a space and the API key. |
Response
The answer has the status 204 and no body.
Deletion is permanent. The license key stops working immediately. The seats, the device bindings and the events of the license are deleted too. The customer who owned the license is not deleted. See Deletion and Retention and deletion.
To stop a license for a time, suspend it instead. See Update a license.
Errors
| Status | Reason | Description |
|---|---|---|
| 401 | An API key is required. | The request has no Authorization header, the header is empty, or the header does not use the Bearer scheme. |
| 401 | The API key is not valid. | No integration has this key. |
| 401 | The API key has expired. | The expiry date of the key has passed. |
| 403 | This integration does not have the licenses:write scope. | The integration does not have licenses:write. |
| 404 | The license was not found. | No license in your account has this ID. A license that was already deleted gets the same answer. An integration that is limited to one product gets the same answer for a license of another product. |
| 429 | There are too many requests. Try again later. | See Rate limits. |
See Errors.
Example
curl -X DELETE https://api.seatify.dev/v1/licenses/$LICENSE_ID \
-H "Authorization: Bearer $SEATIFY_API_KEY"The answer has the status 204 and no body.