---
title: "Enable the global alert policy"
method: POST
path: "/api/{cloudId}/v1/alerts/policies/{policyId}/enable"
tags: ["Policies"]
---

# Enable the global alert policy

`POST /api/{cloudId}/v1/alerts/policies/{policyId}/enable`

Enable the global alert policy

## Path parameters

- `policyId` string, required

## Response `200`

Returned if the request is successful.

- GetGlobalAlertPolicy
  - `type` string
  - `id` string
  - `name` string
  - `description` string
  - `teamId` string
  - `enabled` boolean
  - `order` number
  - `filter` object
    - `type` string, required
    - `conditions` object[], required
      - `field` string
      - `not` boolean
      - `operation` string
      - `expectedValue` string
      - `order` number
  - `timeRestriction` object
    - `enabled` boolean, required
    - `timeRestrictions` object[], required
      - `startHour` number
      - `startMinute` number
      - `endHour` number
      - `endMinute` number
    - `appliedTimeZone` string, required
  - `alias` string
  - `message` string
  - `alertDescription` string
  - `source` string
  - `entity` string
  - `responders` string[]
  - `actions` string[]
  - `tags` string[]
  - `details` object
  - `continue` boolean
  - `updatePriority` boolean — If set to true, priority of the alert will be updated based on priorityValue. Default value is false
  - `priorityValue` 'P1' | 'P2' | 'P3' | 'P4' | 'P5' — Priority value of the alert. Should be one of P1, P2, P3, P4, or P5. This field is used when updatePriority is set to true.
  - `keepOriginalResponders` boolean
  - `keepOriginalDetails` boolean
  - `keepOriginalActions` boolean
  - `keepOriginalTags` boolean

## Other responses

- `401` — Returned if the authentication credentials are incorrect.
- `404` — Returned if the maintenance is not found.
- `422` — Returned if the payload cannot be validated.

---

[API](https://skmtc.net/atlassian/apis/jsm-operations-api.md) · [All operations](https://skmtc.net/atlassian/apis/jsm-operations-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/jsm-operations-api/revisions/ed65f017bcb8/schema)
