Edit

Delete costManagementAlertSetting

Important

APIs under the /beta version are subject to change. Use of these APIs in production applications is not supported.

Delete the notify-only alert configuration for a spending policy, represented by a costManagementAlertSetting object. This turns alerting off and discards the configuration. Separately managed recipient references are retained; deleting the alert configuration doesn't remove them.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CopilotCostManagement-Policy.ReadWrite.All Not supported.
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

HTTP request

DELETE /copilot/costManagement/spendingPolicies/{id}/emailThresholdSettings

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
If-Match The ETag of the parent spending policy. Required.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It doesn't return anything in the response body.

Example

Request

The following example shows a request.

DELETE https://graph.microsoft.com/beta/copilot/costManagement/spendingPolicies/3f9e2c1a-0000-0000-0000-00000000c21b/emailThresholdSettings
If-Match: W/"10"

Response

The following example shows the response.

HTTP/1.1 204 No Content