Maintenance windows API - DELETE a maintenance window

Deletes the specified maintenance window. Deletions can't be undone.

DELETE
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/maintenanceWindows/{id}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/maintenanceWindows/{id}

Parameters

Parameter Type Description In Required
id string

The ID of the maintenance window to be deleted.

path required

Response format

A successful request doesn't return any content.

Example

In this example the request deletes the maintenance window with the ID of b8fc7c5b-4332-423a-a223-b60292c3263d. The response code of 204 indicates that the deletion was successful.

The API token is passed in the Authorization header.

Curl

curl -X DELETE \
  https://mySampleEnv.live.dynatrace.com/api/config/v1/maintenanceWindows/b8fc7c5b-4332-423a-a223-b60292c3263d \
  -H 'Authorization: Api-token abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/config/v1/maintenanceWindows/b8fc7c5b-4332-423a-a223-b60292c3263d

Response code

204