openapi: 3.1.0 info: title: Atlassian Admin Account Issue Notification Schemes API description: The Atlassian Admin API provides programmatic access to manage Atlassian organizations, users, domains, policies, and events. It enables administrators to automate organization management tasks, integrate with identity providers, and ensure appropriate access to Atlassian products. version: 1.0.0 contact: name: Atlassian Developer url: https://developer.atlassian.com/cloud/admin/ license: name: Atlassian Developer Terms url: https://developer.atlassian.com/platform/marketplace/atlassian-developer-terms/ x-logo: url: https://wac-cdn.atlassian.com/assets/img/favicons/atlassian/favicon.png servers: - url: https://api.atlassian.com description: Atlassian Cloud API security: - bearerAuth: [] - oauth2: [] tags: - name: Issue Notification Schemes paths: /rest/api/3/notificationscheme/project: get: deprecated: false description: Returns a [paginated](#pagination) mapping of project that have notification scheme assigned. You can provide either one or multiple notification scheme IDs or project IDs to filter by. If you don't provide any, this will return a list of all mappings. Note that only company-managed (classic) projects are supported. This is because team-managed projects don't have a concept of a default notification scheme. The mappings are ordered by projectId.

**[Permissions](#permissions) required:** Permission to access Jira. operationId: atlassianGetnotificationschemetoprojectmappings parameters: - description: The index of the first item to return in a page of results (page offset). in: query name: startAt schema: default: '0' type: string - description: The maximum number of items to return per page. in: query name: maxResults schema: default: '50' type: string - description: The list of notifications scheme IDs to be filtered out in: query name: notificationSchemeId schema: items: default: '' type: string type: array uniqueItems: true - description: The list of project IDs to be filtered out in: query name: projectId schema: items: default: '' type: string type: array uniqueItems: true responses: '200': content: application/json: example: '{"isLast":true,"maxResults":50,"startAt":0,"total":4,"values":[{"notificationSchemeId":"10001","projectId":"100001"}]}' schema: $ref: '#/components/schemas/PageBeanNotificationSchemeAndProjectMappingJsonBean' description: Returned if the request is successful. '400': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if search criteria are invalid, strings vs numbers for projectId, notificationSchemeId, startAt and maxResult '401': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the authentication credentials are incorrect or missing. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Get Projects Using Notification Schemes Paginated tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-atlassian-oauth2-scopes: - scheme: OAuth2 scopes: - manage:jira-configuration state: Current - scheme: OAuth2 scopes: - read:notification-scheme:jira - read:project:jira state: Beta x-atlassian-connect-scope: ADMIN /rest/api/3/notificationscheme/{id}: get: deprecated: false description: Returns a [notification scheme](https://confluence.atlassian.com/x/8YdKLg), including the list of events and the recipients who will receive notifications for those events.

**[Permissions](#permissions) required:** Permission to access Jira, however, the user must have permission to administer at least one project associated with the notification scheme. operationId: atlassianGetnotificationscheme parameters: - description: The ID of the notification scheme. Use [Get notification schemes paginated](#api-rest-api-3-notificationscheme-get) to get a list of notification scheme IDs. in: path name: id required: true schema: format: int64 type: integer - description: "Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include:\n\n * `all` Returns all expandable information\n * `field` Returns information about any custom fields assigned to receive an event\n * `group` Returns information about any groups assigned to receive an event\n * `notificationSchemeEvents` Returns a list of event associations. This list is returned for all expandable information\n * `projectRole` Returns information about any project roles assigned to receive an event\n * `user` Returns information about any users assigned to receive an event" in: query name: expand schema: type: string responses: '200': content: application/json: example: '{"description":"description","expand":"notificationSchemeEvents,user,group,projectRole,field,all","id":10100,"name":"notification scheme name","notificationSchemeEvents":[{"event":{"description":"Event published when an issue is created","id":1,"name":"Issue created"},"notifications":[{"expand":"group","group":{"groupId":"276f955c-63d7-42c8-9520-92d01dca0625","name":"jira-administrators","self":"https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625"},"id":1,"notificationType":"Group","parameter":"jira-administrators","recipient":"276f955c-63d7-42c8-9520-92d01dca0625"},{"id":2,"notificationType":"CurrentAssignee"},{"expand":"projectRole","id":3,"notificationType":"ProjectRole","parameter":"10360","projectRole":{"self":"https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360","name":"Developers","id":10360,"description":"A project role that represents developers in a project","actors":[{"actorGroup":{"name":"jira-developers","displayName":"jira-developers","groupId":"952d12c3-5b5b-4d04-bb32-44d383afc4b2"},"displayName":"jira-developers","id":10240,"name":"jira-developers","type":"atlassian-group-role-actor"},{"actorUser":{"accountId":"5b10a2844c20165700ede21g"},"displayName":"Mia Krystof","id":10241,"type":"atlassian-user-role-actor"}],"scope":{"project":{"id":"10000","key":"KEY","name":"Next Gen Project"},"type":"PROJECT"}},"recipient":"10360"},{"emailAddress":"rest-developer@atlassian.com","id":4,"notificationType":"EmailAddress","parameter":"rest-developer@atlassian.com","recipient":"rest-developer@atlassian.com"},{"expand":"user","id":5,"notificationType":"User","parameter":"5b10a2844c20165700ede21g","recipient":"5b10a2844c20165700ede21g","user":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia Krystof","self":"https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"}},{"expand":"field","field":{"clauseNames":["cf[10101]","New custom field"],"custom":true,"id":"customfield_10101","key":"customfield_10101","name":"New custom field","navigable":true,"orderable":true,"schema":{"custom":"com.atlassian.jira.plugin.system.customfieldtypes:project","customId":10101,"type":"project"},"searchable":true,"untranslatedName":"New custom field"},"id":6,"notificationType":"GroupCustomField","parameter":"customfield_10101","recipient":"customfield_10101"}]},{"event":{"description":"Custom event that is published together with an issue created event","id":20,"name":"Custom event","templateEvent":{"description":"Event published when an issue is created","id":1,"name":"Issue created"}},"notifications":[{"expand":"group","group":{"groupId":"276f955c-63d7-42c8-9520-92d01dca0625","name":"jira-administrators","self":"https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625"},"id":1,"notificationType":"Group","parameter":"jira-administrators","recipient":"276f955c-63d7-42c8-9520-92d01dca0625"},{"id":2,"notificationType":"CurrentAssignee"},{"expand":"projectRole","id":3,"notificationType":"ProjectRole","parameter":"10360","projectRole":{"self":"https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360","name":"Developers","id":10360,"description":"A project role that represents developers in a project","actors":[{"actorGroup":{"name":"jira-developers","displayName":"jira-developers","groupId":"952d12c3-5b5b-4d04-bb32-44d383afc4b2"},"displayName":"jira-developers","id":10240,"name":"jira-developers","type":"atlassian-group-role-actor"},{"actorUser":{"accountId":"5b10a2844c20165700ede21g"},"displayName":"Mia Krystof","id":10241,"type":"atlassian-user-role-actor"}],"scope":{"project":{"id":"10000","key":"KEY","name":"Next Gen Project"},"type":"PROJECT"}},"recipient":"10360"},{"emailAddress":"rest-developer@atlassian.com","id":4,"notificationType":"EmailAddress","parameter":"rest-developer@atlassian.com","recipient":"rest-developer@atlassian.com"},{"expand":"user","id":5,"notificationType":"User","parameter":"5b10a2844c20165700ede21g","recipient":"5b10a2844c20165700ede21g","user":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia Krystof","self":"https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"}},{"expand":"field","field":{"clauseNames":["cf[10101]","New custom field"],"custom":true,"id":"customfield_10101","key":"customfield_10101","name":"New custom field","navigable":true,"orderable":true,"schema":{"custom":"com.atlassian.jira.plugin.system.customfieldtypes:project","customId":10101,"type":"project"},"searchable":true,"untranslatedName":"New custom field"},"id":6,"notificationType":"GroupCustomField","parameter":"customfield_10101","recipient":"customfield_10101"}]}],"projects":[10001,10002],"self":"https://your-domain.atlassian.net/rest/api/3/notificationscheme"}' schema: $ref: '#/components/schemas/NotificationScheme' description: Returned if the request is successful. '400': description: Returned if the request is invalid. '401': description: Returned if the authentication credentials are incorrect or missing. '404': description: Returned if the notification scheme is not found or the user does not have permission to view it. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Get Notification Scheme tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-atlassian-oauth2-scopes: - scheme: OAuth2 scopes: - manage:jira-configuration state: Current - scheme: OAuth2 scopes: - read:field:jira - read:notification-scheme:jira - read:project:jira - read:project-role:jira - read:user:jira - read:avatar:jira - read:field-configuration:jira - read:group:jira - read:project-category:jira state: Beta x-atlassian-connect-scope: ADMIN put: deprecated: false description: Updates a notification scheme.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). operationId: atlassianUpdatenotificationscheme parameters: - description: The ID of the notification scheme. in: path name: id required: true schema: type: string requestBody: content: application/json: example: description: My updated notification scheme description name: My updated notification scheme schema: $ref: '#/components/schemas/UpdateNotificationSchemeDetails' required: true responses: '204': content: application/json: schema: {} description: Returned if the request is successful. '400': content: application/json: example: '{"errorMessages":["The length of the description must not exceed 4000 characters."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the request isn't valid. '401': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the authentication credentials are incorrect or missing. '403': content: application/json: example: '{"errorMessages":["You are not authorized to perform this action. Administrator privileges are required."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the user doesn't have the necessary permission. '404': content: application/json: example: '{"errorMessages":["Notification scheme with ID 10000 not found."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the notification scheme isn't found. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Update Notification Scheme tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-experimental: true x-atlassian-connect-scope: ADMIN /rest/api/3/notificationscheme/{id}/notification: put: deprecated: false description: 'Adds notifications to a notification scheme. You can add up to 1000 notifications per request.

*Deprecated: The notification type `EmailAddress` is no longer supported in Cloud. Refer to the [changelog](https://developer.atlassian.com/cloud/jira/platform/changelog/#CHANGE-1031) for more details.*

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).' operationId: atlassianAddnotifications parameters: - description: The ID of the notification scheme. in: path name: id required: true schema: type: string requestBody: content: application/json: example: notificationSchemeEvents: - event: id: '1' notifications: - notificationType: Group parameter: jira-administrators schema: $ref: '#/components/schemas/AddNotificationsDetails' required: true responses: '204': content: application/json: schema: {} description: Returned if the request is successful. '400': content: application/json: example: '{"errorMessages":["Event type with ID 2 not found."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the request isn't valid. '401': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the authentication credentials are incorrect or missing. '403': content: application/json: example: '{"errorMessages":["You are not authorized to perform this action. Administrator privileges are required."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the user doesn't have the necessary permission. '404': content: application/json: example: '{"errorMessages":["Notification scheme with ID 10001 not found."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the notification scheme isn't found. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Add Notifications To Notification Scheme tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-atlassian-connect-scope: ADMIN /rest/api/3/notificationscheme/{notificationSchemeId}: delete: deprecated: false description: Deletes a notification scheme.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). operationId: atlassianDeletenotificationscheme parameters: - description: The ID of the notification scheme. in: path name: notificationSchemeId required: true schema: type: string responses: '204': content: application/json: schema: {} description: Returned if the request is successful. '400': content: application/json: example: '{"errorMessages":["You can’t delete the default notification scheme."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the request isn't valid. '401': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the authentication credentials are incorrect or missing. '403': content: application/json: example: '{"errorMessages":["You are not authorized to perform this action. Administrator privileges are required."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the user doesn't have the necessary permission. '404': content: application/json: example: '{"errorMessages":["Notification scheme with ID 10000 not found."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the notification scheme isn't found. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Delete Notification Scheme tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-experimental: true x-atlassian-connect-scope: ADMIN /rest/api/3/notificationscheme/{notificationSchemeId}/notification/{notificationId}: delete: deprecated: false description: Removes a notification from a notification scheme.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). operationId: atlassianRemovenotificationfromnotificationscheme parameters: - description: The ID of the notification scheme. in: path name: notificationSchemeId required: true schema: type: string - description: The ID of the notification. in: path name: notificationId required: true schema: type: string responses: '204': content: application/json: schema: {} description: Returned if the request is successful. '400': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the request isn't valid. '401': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the authentication credentials are incorrect or missing. '403': content: application/json: example: '{"errorMessages":["You are not authorized to perform this action. Administrator privileges are required."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the user doesn't have the necessary permission. '404': content: application/json: example: '{"errorMessages":["Notification scheme with ID 10000 not found."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if either the notification scheme or notification isn't found. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Remove Notification From Notification Scheme tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-atlassian-connect-scope: ADMIN /rest/api/3/notificationscheme: get: deprecated: false description: Returns a [paginated](#pagination) list of [notification schemes](https://confluence.atlassian.com/x/8YdKLg) ordered by the display name.

*Note that you should allow for events without recipients to appear in responses.*

**[Permissions](#permissions) required:** Permission to access Jira, however, the user must have permission to administer at least one project associated with a notification scheme for it to be returned. operationId: atlassianGetnotificationschemes parameters: - description: The index of the first item to return in a page of results (page offset). in: query name: startAt schema: default: '0' type: string - description: The maximum number of items to return per page. in: query name: maxResults schema: default: '50' type: string - description: The list of notification schemes IDs to be filtered by in: query name: id schema: items: default: '' type: string type: array uniqueItems: true - description: The list of projects IDs to be filtered by in: query name: projectId schema: items: default: '' type: string type: array uniqueItems: true - description: When set to true, returns only the default notification scheme. If you provide project IDs not associated with the default, returns an empty page. The default value is false. in: query name: onlyDefault schema: default: false type: boolean - description: "Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include:\n\n * `all` Returns all expandable information\n * `field` Returns information about any custom fields assigned to receive an event\n * `group` Returns information about any groups assigned to receive an event\n * `notificationSchemeEvents` Returns a list of event associations. This list is returned for all expandable information\n * `projectRole` Returns information about any project roles assigned to receive an event\n * `user` Returns information about any users assigned to receive an event" in: query name: expand schema: type: string responses: '200': content: application/json: example: '{"isLast":false,"maxResults":6,"startAt":1,"total":5,"values":[{"description":"description","expand":"notificationSchemeEvents,user,group,projectRole,field,all","id":10100,"name":"notification scheme name","notificationSchemeEvents":[{"event":{"description":"Event published when an issue is created","id":1,"name":"Issue created"},"notifications":[{"expand":"group","group":{"groupId":"276f955c-63d7-42c8-9520-92d01dca0625","name":"jira-administrators","self":"https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625"},"id":1,"notificationType":"Group","parameter":"jira-administrators","recipient":"276f955c-63d7-42c8-9520-92d01dca0625"},{"id":2,"notificationType":"CurrentAssignee"},{"expand":"projectRole","id":3,"notificationType":"ProjectRole","parameter":"10360","projectRole":{"self":"https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360","name":"Developers","id":10360,"description":"A project role that represents developers in a project","actors":[{"actorGroup":{"name":"jira-developers","displayName":"jira-developers","groupId":"952d12c3-5b5b-4d04-bb32-44d383afc4b2"},"displayName":"jira-developers","id":10240,"name":"jira-developers","type":"atlassian-group-role-actor"},{"actorUser":{"accountId":"5b10a2844c20165700ede21g"},"displayName":"Mia Krystof","id":10241,"type":"atlassian-user-role-actor"}],"scope":{"project":{"id":"10000","key":"KEY","name":"Next Gen Project"},"type":"PROJECT"}},"recipient":"10360"},{"emailAddress":"rest-developer@atlassian.com","id":4,"notificationType":"EmailAddress","parameter":"rest-developer@atlassian.com","recipient":"rest-developer@atlassian.com"},{"expand":"user","id":5,"notificationType":"User","parameter":"5b10a2844c20165700ede21g","recipient":"5b10a2844c20165700ede21g","user":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia Krystof","self":"https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"}},{"expand":"field","field":{"clauseNames":["cf[10101]","New custom field"],"custom":true,"id":"customfield_10101","key":"customfield_10101","name":"New custom field","navigable":true,"orderable":true,"schema":{"custom":"com.atlassian.jira.plugin.system.customfieldtypes:project","customId":10101,"type":"project"},"searchable":true,"untranslatedName":"New custom field"},"id":6,"notificationType":"GroupCustomField","parameter":"customfield_10101","recipient":"customfield_10101"}]},{"event":{"description":"Custom event that is published together with an issue created event","id":20,"name":"Custom event","templateEvent":{"description":"Event published when an issue is created","id":1,"name":"Issue created"}},"notifications":[{"expand":"group","group":{"groupId":"276f955c-63d7-42c8-9520-92d01dca0625","name":"jira-administrators","self":"https://your-domain.atlassian.net/rest/api/3/group?groupId=276f955c-63d7-42c8-9520-92d01dca0625"},"id":1,"notificationType":"Group","parameter":"jira-administrators","recipient":"276f955c-63d7-42c8-9520-92d01dca0625"},{"id":2,"notificationType":"CurrentAssignee"},{"expand":"projectRole","id":3,"notificationType":"ProjectRole","parameter":"10360","projectRole":{"self":"https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360","name":"Developers","id":10360,"description":"A project role that represents developers in a project","actors":[{"actorGroup":{"name":"jira-developers","displayName":"jira-developers","groupId":"952d12c3-5b5b-4d04-bb32-44d383afc4b2"},"displayName":"jira-developers","id":10240,"name":"jira-developers","type":"atlassian-group-role-actor"},{"actorUser":{"accountId":"5b10a2844c20165700ede21g"},"displayName":"Mia Krystof","id":10241,"type":"atlassian-user-role-actor"}],"scope":{"project":{"id":"10000","key":"KEY","name":"Next Gen Project"},"type":"PROJECT"}},"recipient":"10360"},{"emailAddress":"rest-developer@atlassian.com","id":4,"notificationType":"EmailAddress","parameter":"rest-developer@atlassian.com","recipient":"rest-developer@atlassian.com"},{"expand":"user","id":5,"notificationType":"User","parameter":"5b10a2844c20165700ede21g","recipient":"5b10a2844c20165700ede21g","user":{"accountId":"5b10a2844c20165700ede21g","active":false,"displayName":"Mia Krystof","self":"https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"}},{"expand":"field","field":{"clauseNames":["cf[10101]","New custom field"],"custom":true,"id":"customfield_10101","key":"customfield_10101","name":"New custom field","navigable":true,"orderable":true,"schema":{"custom":"com.atlassian.jira.plugin.system.customfieldtypes:project","customId":10101,"type":"project"},"searchable":true,"untranslatedName":"New custom field"},"id":6,"notificationType":"GroupCustomField","parameter":"customfield_10101","recipient":"customfield_10101"}]}],"projects":[10001,10002],"self":"https://your-domain.atlassian.net/rest/api/3/notificationscheme"}]}' schema: $ref: '#/components/schemas/PageBeanNotificationScheme' description: Returned if the request is successful. Only returns notification schemes that the user has permission to access. An empty list is returned if the user lacks permission to access all notification schemes. '400': content: application/json: example: '{"errorMessages":["%20. is not a valid value. id must be zero or a positive integer."],"errors":{}}' description: Returned if the request isn't valid. '401': description: Returned if the authentication credentials are incorrect or missing. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Get Notification Schemes Paginated tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-atlassian-oauth2-scopes: - scheme: OAuth2 scopes: - manage:jira-configuration state: Current - scheme: OAuth2 scopes: - read:field:jira - read:notification-scheme:jira - read:project:jira - read:project-role:jira - read:user:jira - read:avatar:jira - read:group:jira - read:project-category:jira - read:field-configuration:jira state: Beta x-atlassian-connect-scope: ADMIN post: deprecated: false description: Creates a notification scheme with notifications. You can create up to 1000 notifications per request.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). operationId: atlassianCreatenotificationscheme parameters: [] requestBody: content: application/json: example: description: My new scheme description name: My new notification scheme notificationSchemeEvents: - event: id: '1' notifications: - notificationType: Group parameter: jira-administrators schema: $ref: '#/components/schemas/CreateNotificationSchemeDetails' required: true responses: '201': content: application/json: example: '{"id":"10001"}' schema: $ref: '#/components/schemas/NotificationSchemeId' description: Returned if the request is successful. '400': content: application/json: example: '{"errorMessages":["The length of the description must not exceed 4000 characters."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the request isn't valid. '401': content: application/json: schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the authentication credentials are incorrect or missing. '403': content: application/json: example: '{"errorMessages":["You are not authorized to perform this action. Administrator privileges are required."],"errors":{}}' schema: $ref: '#/components/schemas/ErrorCollection' description: Returned if the user doesn't have the necessary permission. security: - basicAuth: [] - OAuth2: - manage:jira-configuration summary: Atlassian Create Notification Scheme tags: - Issue Notification Schemes x-atlassian-data-security-policy: - app-access-rule-exempt: true x-experimental: true x-atlassian-connect-scope: ADMIN components: schemas: JsonTypeBean: additionalProperties: false description: The schema of a field. properties: configuration: additionalProperties: readOnly: true description: If the field is a custom field, the configuration of the field. readOnly: true type: object custom: description: If the field is a custom field, the URI of the field. readOnly: true type: string customId: description: If the field is a custom field, the custom ID of the field. format: int64 readOnly: true type: integer items: description: When the data type is an array, the name of the field items within the array. readOnly: true type: string system: description: If the field is a system field, the name of the field. readOnly: true type: string type: description: The data type of the field. readOnly: true type: string required: - type type: object GroupName: additionalProperties: false description: Details about a group. properties: groupId: description: The ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*. nullable: true type: string name: description: The name of group. type: string self: description: The URL for these group details. format: uri readOnly: true type: string type: object ErrorCollection: additionalProperties: false description: Error messages from an operation. properties: errorMessages: description: The list of error messages produced by this operation. For example, "input parameter 'key' must be provided" items: type: string type: array errors: additionalProperties: type: string description: 'The list of errors by parameter returned by the operation. For example,"projectKey": "Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters."' type: object status: format: int32 type: integer type: object ProjectDetails: additionalProperties: false description: Details about a project. properties: avatarUrls: allOf: - $ref: '#/components/schemas/AvatarUrlsBean' description: The URLs of the project's avatars. readOnly: true id: description: The ID of the project. type: string key: description: The key of the project. readOnly: true type: string name: description: The name of the project. readOnly: true type: string projectCategory: allOf: - $ref: '#/components/schemas/UpdatedProjectCategory' description: The category the project belongs to. readOnly: true projectTypeKey: description: The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project. enum: - software - service_desk - business readOnly: true type: string self: description: The URL of the project details. readOnly: true type: string simplified: description: Whether or not the project is simplified. readOnly: true type: boolean type: object FieldDetails: additionalProperties: false description: Details about a field. properties: clauseNames: description: The names that can be used to reference the field in an advanced search. For more information, see [Advanced searching - fields reference](https://confluence.atlassian.com/x/gwORLQ). items: type: string type: array uniqueItems: true custom: description: Whether the field is a custom field. type: boolean id: description: The ID of the field. type: string key: description: The key of the field. type: string name: description: The name of the field. type: string navigable: description: Whether the field can be used as a column on the issue navigator. type: boolean orderable: description: Whether the content of the field can be used to order lists. type: boolean schema: allOf: - $ref: '#/components/schemas/JsonTypeBean' description: The data schema for the field. scope: allOf: - $ref: '#/components/schemas/Scope' description: The scope of the field. searchable: description: Whether the content of the field can be searched. type: boolean type: object xml: name: field Scope: additionalProperties: true description: The projects the item is associated with. Indicated for items associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO). properties: project: allOf: - $ref: '#/components/schemas/ProjectDetails' description: The project the item has scope in. readOnly: true type: description: The type of scope. enum: - PROJECT - TEMPLATE readOnly: true type: string type: object RoleActor: additionalProperties: false description: Details about a user assigned to a project role. properties: actorGroup: allOf: - $ref: '#/components/schemas/ProjectRoleGroup' readOnly: true actorUser: allOf: - $ref: '#/components/schemas/ProjectRoleUser' readOnly: true avatarUrl: description: The avatar of the role actor. format: uri readOnly: true type: string displayName: description: The display name of the role actor. For users, depending on the user’s privacy setting, this may return an alternative value for the user's name. readOnly: true type: string id: description: The ID of the role actor. format: int64 readOnly: true type: integer name: description: This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. readOnly: true type: string type: description: The type of role actor. enum: - atlassian-group-role-actor - atlassian-user-role-actor readOnly: true type: string type: object xml: name: projectRoleActor UpdatedProjectCategory: additionalProperties: false description: A project category. properties: description: description: The name of the project category. readOnly: true type: string id: description: The ID of the project category. readOnly: true type: string name: description: The description of the project category. readOnly: true type: string self: description: The URL of the project category. readOnly: true type: string type: object NotificationSchemeEventDetails: additionalProperties: true description: Details of a notification scheme event. properties: event: allOf: - $ref: '#/components/schemas/NotificationSchemeEventTypeId' description: The ID of the event. notifications: description: The list of notifications mapped to a specified event. items: $ref: '#/components/schemas/NotificationSchemeNotificationDetails' maxLength: 255 type: array writeOnly: true required: - event - notifications type: object writeOnly: true NotificationEvent: additionalProperties: false description: Details about a notification event. properties: description: description: The description of the event. type: string id: description: The ID of the event. The event can be a [Jira system event](https://confluence.atlassian.com/x/8YdKLg#Creatinganotificationscheme-eventsEvents) or a [custom event](https://confluence.atlassian.com/x/AIlKLg). format: int64 type: integer name: description: The name of the event. type: string templateEvent: allOf: - $ref: '#/components/schemas/NotificationEvent' description: The template of the event. Only custom events configured by Jira administrators have template. type: object NotificationSchemeAndProjectMappingJsonBean: additionalProperties: false properties: notificationSchemeId: type: string projectId: type: string type: object CreateNotificationSchemeDetails: additionalProperties: true description: Details of an notification scheme. properties: description: description: The description of the notification scheme. maxLength: 4000 type: string writeOnly: true name: description: The name of the notification scheme. Must be unique (case-insensitive). maxLength: 255 type: string writeOnly: true notificationSchemeEvents: description: The list of notifications which should be added to the notification scheme. items: $ref: '#/components/schemas/NotificationSchemeEventDetails' type: array writeOnly: true required: - name type: object NotificationSchemeNotificationDetails: additionalProperties: true description: Details of a notification within a notification scheme. maxLength: 255 properties: notificationType: description: The notification type, e.g `CurrentAssignee`, `Group`, `EmailAddress`. type: string writeOnly: true parameter: description: The value corresponding to the specified notification type. type: string writeOnly: true required: - notificationType type: object writeOnly: true ProjectRoleGroup: additionalProperties: false description: Details of the group associated with the role. properties: displayName: description: The display name of the group. type: string groupId: description: The ID of the group. type: string name: description: The name of the group. As a group's name can change, use of `groupId` is recommended to identify the group. type: string type: object AddNotificationsDetails: additionalProperties: true description: Details of notifications which should be added to the notification scheme. properties: notificationSchemeEvents: description: The list of notifications which should be added to the notification scheme. items: $ref: '#/components/schemas/NotificationSchemeEventDetails' type: array writeOnly: true required: - notificationSchemeEvents type: object UpdateNotificationSchemeDetails: additionalProperties: true description: Details of a notification scheme. properties: description: description: The description of the notification scheme. maxLength: 4000 type: string writeOnly: true name: description: The name of the notification scheme. Must be unique. maxLength: 255 type: string writeOnly: true type: object EventNotification: additionalProperties: false description: Details about a notification associated with an event. properties: emailAddress: description: The email address. type: string expand: description: Expand options that include additional event notification details in the response. type: string field: allOf: - $ref: '#/components/schemas/FieldDetails' description: The custom user or group field. group: allOf: - $ref: '#/components/schemas/GroupName' description: The specified group. id: description: The ID of the notification. format: int64 type: integer notificationType: description: Identifies the recipients of the notification. enum: - CurrentAssignee - Reporter - CurrentUser - ProjectLead - ComponentLead - User - Group - ProjectRole - EmailAddress - AllWatchers - UserCustomField - GroupCustomField type: string parameter: description: "As a group's name can change, use of `recipient` is recommended. The identifier associated with the `notificationType` value that defines the receiver of the notification, where the receiver isn't implied by `notificationType` value. So, when `notificationType` is:\n\n * `User` The `parameter` is the user account ID.\n * `Group` The `parameter` is the group name.\n * `ProjectRole` The `parameter` is the project role ID.\n * `UserCustomField` The `parameter` is the ID of the custom field.\n * `GroupCustomField` The `parameter` is the ID of the custom field." type: string projectRole: allOf: - $ref: '#/components/schemas/ProjectRole' description: The specified project role. recipient: description: "The identifier associated with the `notificationType` value that defines the receiver of the notification, where the receiver isn't implied by the `notificationType` value. So, when `notificationType` is:\n\n * `User`, `recipient` is the user account ID.\n * `Group`, `recipient` is the group ID.\n * `ProjectRole`, `recipient` is the project role ID.\n * `UserCustomField`, `recipient` is the ID of the custom field.\n * `GroupCustomField`, `recipient` is the ID of the custom field." type: string user: allOf: - $ref: '#/components/schemas/UserDetails' description: The specified user. type: object PageBeanNotificationScheme: additionalProperties: false description: A page of items. properties: isLast: description: Whether this is the last page. readOnly: true type: boolean maxResults: description: The maximum number of items that could be returned. format: int32 readOnly: true type: integer nextPage: description: If there is another page of results, the URL of the next page. format: uri readOnly: true type: string self: description: The URL of the page. format: uri readOnly: true type: string startAt: description: The index of the first item returned. format: int64 readOnly: true type: integer total: description: The number of items returned. format: int64 readOnly: true type: integer values: description: The list of items. items: $ref: '#/components/schemas/NotificationScheme' readOnly: true type: array type: object NotificationScheme: additionalProperties: false description: Details about a notification scheme. properties: description: description: The description of the notification scheme. type: string expand: description: Expand options that include additional notification scheme details in the response. type: string id: description: The ID of the notification scheme. format: int64 type: integer name: description: The name of the notification scheme. type: string notificationSchemeEvents: description: The notification events and associated recipients. items: $ref: '#/components/schemas/NotificationSchemeEvent' type: array projects: description: The list of project IDs associated with the notification scheme. items: format: int64 type: integer type: array scope: allOf: - $ref: '#/components/schemas/Scope' description: The scope of the notification scheme. self: type: string type: object NotificationSchemeId: additionalProperties: true description: The ID of a notification scheme. properties: id: description: The ID of a notification scheme. readOnly: true type: string required: - id type: object NotificationSchemeEventTypeId: additionalProperties: true description: The ID of an event that is being mapped to notifications. properties: id: description: The ID of the notification scheme event. type: string writeOnly: true required: - id type: object writeOnly: true ProjectRoleUser: additionalProperties: false description: Details of the user associated with the role. properties: accountId: description: The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Returns *unknown* if the record is deleted and corrupted, for example, as the result of a server import. maxLength: 128 readOnly: true type: string type: object ProjectRole: additionalProperties: false description: Details about the roles in a project. properties: actors: description: The list of users who act in this role. items: $ref: '#/components/schemas/RoleActor' readOnly: true type: array admin: description: Whether this role is the admin role for the project. readOnly: true type: boolean currentUserRole: description: Whether the calling user is part of this role. type: boolean default: description: Whether this role is the default role for the project readOnly: true type: boolean description: description: The description of the project role. readOnly: true type: string id: description: The ID of the project role. format: int64 readOnly: true type: integer name: description: The name of the project role. type: string roleConfigurable: description: Whether the roles are configurable for this project. readOnly: true type: boolean scope: allOf: - $ref: '#/components/schemas/Scope' description: The scope of the role. Indicated for roles associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO). readOnly: true self: description: The URL the project role details. format: uri readOnly: true type: string translatedName: description: The translated name of the project role. type: string type: object PageBeanNotificationSchemeAndProjectMappingJsonBean: additionalProperties: false description: A page of items. properties: isLast: description: Whether this is the last page. readOnly: true type: boolean maxResults: description: The maximum number of items that could be returned. format: int32 readOnly: true type: integer nextPage: description: If there is another page of results, the URL of the next page. format: uri readOnly: true type: string self: description: The URL of the page. format: uri readOnly: true type: string startAt: description: The index of the first item returned. format: int64 readOnly: true type: integer total: description: The number of items returned. format: int64 readOnly: true type: integer values: description: The list of items. items: $ref: '#/components/schemas/NotificationSchemeAndProjectMappingJsonBean' readOnly: true type: array type: object NotificationSchemeEvent: additionalProperties: false description: Details about a notification scheme event. properties: event: $ref: '#/components/schemas/NotificationEvent' notifications: items: $ref: '#/components/schemas/EventNotification' type: array type: object AvatarUrlsBean: additionalProperties: false properties: 16x16: description: The URL of the item's 16x16 pixel avatar. format: uri type: string 24x24: description: The URL of the item's 24x24 pixel avatar. format: uri type: string 32x32: description: The URL of the item's 32x32 pixel avatar. format: uri type: string 48x48: description: The URL of the item's 48x48 pixel avatar. format: uri type: string type: object UserDetails: additionalProperties: false description: "User details permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions:\n\n * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, `displayName` provides an indication and other parameters have default values or are blank (for example, email is blank).\n * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, `accountId` returns *unknown* and all other parameters have fallback values.\n * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values." properties: accountId: description: The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. maxLength: 128 type: string accountType: description: The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user) readOnly: true type: string active: description: Whether the user is active. readOnly: true type: boolean avatarUrls: allOf: - $ref: '#/components/schemas/AvatarUrlsBean' description: The avatars of the user. readOnly: true displayName: description: The display name of the user. Depending on the user’s privacy settings, this may return an alternative value. readOnly: true type: string emailAddress: description: The email address of the user. Depending on the user’s privacy settings, this may be returned as null. readOnly: true type: string key: description: This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. readOnly: true type: string name: description: This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. readOnly: true type: string self: description: The URL of the user. readOnly: true type: string timeZone: description: The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null. readOnly: true type: string type: object securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: API Key description: Use an Atlassian API key as a Bearer token. Create API keys at https://admin.atlassian.com. oauth2: type: oauth2 description: OAuth 2.0 authorization for Atlassian Cloud APIs. flows: authorizationCode: authorizationUrl: https://auth.atlassian.com/authorize tokenUrl: https://auth.atlassian.com/oauth/token scopes: read:org:admin: Read organization information. write:org:admin: Modify organization settings. read:user:admin: Read user information. write:user:admin: Modify user accounts. read:policy:admin: Read organization policies. write:policy:admin: Modify organization policies. read:event:admin: Read organization events. externalDocs: description: Atlassian Admin REST API Documentation url: https://developer.atlassian.com/cloud/admin/organization/rest/intro/