addNotifications method

Future addNotifications({
  1. required String id,
  2. required AddNotificationsDetails body,
})

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 for more details.

Permissions required: Administer Jira global permission.

Implementation

Future<dynamic> addNotifications(
    {required String id, required AddNotificationsDetails body}) async {
  return await _client.send(
    'put',
    'rest/api/3/notificationscheme/{id}/notification',
    pathParameters: {
      'id': id,
    },
    body: body.toJson(),
  );
}