---
ai:
  exclude: true
search:
  tags:
    - issue
    - POST
seo:
  description: >-
    Sends a notification (email) to the… Reference for the POST
    /api/2/issue/{issueIdOrKey}/notify endpoint in the Jira Software Data Center
    REST API Reference.
sidebar:
  label: Send notification to recipients
  badge: POST
title: Send notification to recipients
type: openapi-operation
---
Sends a notification (email) to the list or recipients defined in the request.

`POST /api/2/issue/{issueIdOrKey}/notify`

**Request body** (`application/json`)

Notification request

- `htmlBody` (string)
- `restrict` (RestrictJsonBean)
- `subject` (string)
- `textBody` (string)
- `to` (ToJsonBean)

Request body example:

```json
{
  "htmlBody": "Lorem ipsum <strong>dolor</strong> sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "restrict": {
    "groups": [
      {
        "name": "jira-administrators",
        "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators"
      }
    ],
    "permissions": [
      {
        "EDIT_ISSUE": {
          "id": "EDIT_ISSUE",
          "type": "USER",
          "description": "Ability to edit issues.",
          "name": "Edit Issues",
          "havePermission": true
        }
      }
    ]
  },
  "subject": "Duis eu justo eget augue iaculis fermentum.",
  "textBody": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper.",
  "to": {
    "assignee": true,
    "groups": [
      {
        "name": "jira-administrators",
        "self": "http://www.example.com/jira/rest/api/2/group?groupname=jira-administrators"
      }
    ],
    "reporter": true,
    "users": [
      {
        "active": true,
        "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
        "displayName": "Fred F. User",
        "emailAddress": "fred@example.com",
        "key": "fred",
        "name": "Fred",
        "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
        "timeZone": "Australia/Sydney"
      }
    ],
    "voters": true,
    "watchers": true
  }
}
```

**Responses**

- `204` — Returned if adding to the mail queue was successful.
- `400` — Returned if the input is invalid (e.g. missing required fields, invalid values, and so forth).
- `403` — Returned is outgoing emails are disabled OR no SMTP server is defined.
