v3

latestOpenAPI 3.0.12026-07-31240345599.7 KB
Team Policies

Enable the team policy

Enable the team policy

post/api/{cloudId}/v1/teams/{teamId}/policies/{policyId}/enable

Path parameters

policyIdstring required

Identifier of the policy.

teamIdstring required

The jira team identifier

Response

Returned if the request is successful.

OR

Example response

{
  "type": "ALERT",
  "id": "5422f159-0ca5-4fd9-9f73-770b2778baa3",
  "name": "test 2",
  "description": "asdasd",
  "teamId": "5422f159-0ca5-4fd9-9f73-7707enver82a3",
  "enabled": true,
  "filter": {
    "type": "match-any-condition",
    "conditions": [
      {
        "field": "message",
        "operation": "contains",
        "expectedValue": "asd"
      }
    ]
  },
  "timeRestriction": {
    "enabled": true,
    "timeRestrictions": [
      {
        "endHour": 1
      }
    ],
    "appliedTimeZone": "(GMT+03:00) Europe/Istanbul TRT"
  },
  "alias": "{{alias}}",
  "message": "{{message}} asd",
  "alertDescription": "{{description}}",
  "source": "{{source}}",
  "entity": "{{entity}}",
  "responders": [],
  "actions": [],
  "tags": [],
  "priorityValue": "P3",
  "keepOriginalResponders": true,
  "keepOriginalDetails": true,
  "keepOriginalActions": true,
  "keepOriginalTags": true
}