Team Policies
Enable the team policy
Changed onEnable the team policy
post/api/{cloudId}/v1/teams/{teamId}/policies/{policyId}/enable
Request
- Base URLhttps://api.atlassian.com/jsm/ops
- URLhttps://api.atlassian.com/jsm/ops/api/{cloudId}/v1/teams/{teamId}/policies/{policyId}/enable
- Auth
- HTTP basic
- or OAuth 2Authorization code: https://auth.stg.atlassian.com/authorizeToken URL: https://auth.stg.atlassian.com/oauth/token scopes: read:ops-config:jira-service-management
Path parameters
policyIdstring required
Identifier of the policy.
teamIdstring required
The jira team identifier
Response
Returned if the request is successful.
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
}Changes
- info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status - info
added the optional property
///////to the response with the status
- info