---
type: api
title: Create or update a protection updates note
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-createupdateprotectionupdatesnote
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-createupdateprotectionupdatesnote
products:
  - Kibana
---

# Create or update a protection updates note

Authentication: required

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/endpoint/protection_updates_note/{package_policy_id}`
- `POST` `/s/{space_id}/api/endpoint/protection_updates_note/{package_policy_id}`

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
- `package_policy_id` (string) — required

## Request body

`application/json`

- `note` (string) — optional

## Response

OK

`application/json`

- `note` (string)
## Code examples

#### Console

```console
POST kbn:/api/endpoint/protection_updates_note/PACKAGE_POLICY_ID
{}
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/endpoint/protection_updates_note/${PACKAGE_POLICY_ID}" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "note": "string"
}
```

