• Home
  • Dynatrace API
  • Configuration
  • Maintenance windows
  • DELETE a maintenance window

Maintenance windows API - DELETE a maintenance window

This API is deprecated. Use the Settings API with the Maintenance windows (builtin:alerting.maintenance-window) schema instead.

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

DELETEManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/config/v1/maintenanceWindows/{id}
SaaShttps://{your-environment-id}.live.dynatrace.com/api/config/v1/maintenanceWindows/{id}
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/maintenanceWindows/{id}

Authentication

To execute this request, you need an access token with WriteConfig scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
idstring

The ID of the maintenance window to be deleted.

pathrequired

Response

Response codes

CodeDescription
204

Success. The maintenance window has been deleted. Response doesn't have a body.

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

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

Request URL

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

Response code

204

Related topics
  • Maintenance windows

    Understand when to use a maintenance window. Read about the supported maintenance window types.