> For the complete documentation index, see [llms.txt](https://docs.skeddly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skeddly.com/resources/projects/createprojectnotification-method.md).

# CreateProjectNotification Method

## Description

Creates a new project notification.

## HTTP Request

`POST https://api.skeddly.com/api/Projects/<id>/Notifications`

## Body

The body is a JSON structure with the following properties.

### amazonSnsSettings

Email settings for the notification. Required when `notificationMethod` is `amazon-sns`.

Type: [ProjectNotificationAmazonSnsSettings](/data-types/projectnotificationamazonsnssettings-object.md) object

Required: Conditional

### emailSettings

Email settings for the notification. Required when `notificationMethod` is `email`.

Type: [ProjectNotificationEmailSettings](/data-types/projectnotificationemailsettings-object.md) object

Required: Conditional

### notificationLevel

Level of notification.

Type: `string`

Allowed Values:

* `all`
* `errors-only`

Required: Yes

### notificationMethod

Method of notification.

Type: `string`

Allowed Values:

* `email`
* `slack`
* `amazon-sns`

Required: Yes

### slackSettings

Slack settings for the notification. Required when `notificationMethod` is `slack`.

Type: [ProjectNotificationSlackSettings](/data-types/projectnotificationslacksettings-object.md) object

Required: Conditional

## Returns

A [ProjectNotification](/data-types/projectnotification-object.md) object.

## Sample Request

{% tabs %}
{% tab title="HTTP" %}

```http
POST /api/Projects/proj-12345678/Notifications HTTP/1.1
Host: api.skeddly.com
Authorization: AccessKey <api key>
Content-Type: application/json

{
    "notificationLevel": "errors-only",
    "notificationMethod": "email",
    "emailSettings": {
        "emailAddresses": [
            "user1@example.com"
        ]
    }
}
```

{% endtab %}

{% tab title="Bash" %}

```bash
curl -X POST "https://api.skeddly.com/api/Projects/proj-12345678/Notifications" \
  -H "Authorization: AccessKey <api key>" \
  -d notificationLevel="errors-only" \
  -d notificationMethod="email" \
  -d emailSettings.emailAddresses[0]="user1@example.com"
```

{% endtab %}
{% endtabs %}

## Sample Response

```javascript
{
    "notificationId": "pn-12345678",
    "createdDate": "2023-01-26T12:00:00:Z",
    "lastModifiedDate": "2023-01-26T12:00:00:Z",
    "lastModifiedBy": "u-12345678",
    
    "notificationLevel": "errors-only",
    "notificationMethod": "email",
    "emailSettings": {
        "emailAddresses": [
            "user1@example.com"
        ]
    }
}
```
