---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://yandex.ru/dev/metrika/en/management/openapi/chart_annotation/create.md
  - https://yandex.ru/dev/metrika/ru/management/openapi/chart_annotation/create.md
  - href: https://yandex.ru/dev/metrika/en/management/openapi/chart_annotation/create.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.ru/dev/metrika/en/llms.txt?revision=r22093398
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/metrika/en/llms.txt?revision=r22093398

<!-- source: en/management-src/Notes-in-charts/create.md -->
<div class="openapi">

# Creating notes

<!-- markdownlint-disable-file -->

Creates a note.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-post);margin-bottom: 12px">

<div class="openapi__request">

POST {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/management/v1/counter/{counterId}/chart_annotations
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_counterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

ID of the tag to create a note for.
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "chart_annotation": {
    "id": 0,
    "date": "2025-01-01",
    "time": "12:00:00",
    "title": "example",
    "message": "example",
    "group": "example"
  }
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_chart_annotation_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [MetrikaChartAnnotation](#entity-MetrikaChartAnnotation)

Note in the chart.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 0,
  "date": "2025-01-01",
  "time": "12:00:00",
  "title": "example",
  "message": "example",
  "group": "example"
}
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### MetrikaChartAnnotation {#entity-MetrikaChartAnnotation}

Note in the chart.

#|
|| **Name** | **Description** ||
||

_date_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;date&gt;

Date.

_Example:_{.json-schema-reset .json-schema-example} `2025-01-01`
{.table-cell}
||
||

_group_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Group. Possible values:
- A: Group A.
- B: Group B.
- C: Group C.
- D: Group D.
- E: Group E.


_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_title_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Title.

_Min length:_{.json-schema-reset .json-schema-assertion} `0`

_Max length:_{.json-schema-reset .json-schema-assertion} `255`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_id_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Comment ID.
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Description.

_Min length:_{.json-schema-reset .json-schema-assertion} `0`

_Max length:_{.json-schema-reset .json-schema-assertion} `1023`

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_time_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;time&gt;

Time.

_Example:_{.json-schema-reset .json-schema-example} `12:00:00`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 0,
  "date": "2025-01-01",
  "time": "12:00:00",
  "title": "example",
  "message": "example",
  "group": "example"
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "chart_annotation": {
    "id": 0,
    "date": "2025-01-01",
    "time": "12:00:00",
    "title": "example",
    "message": "example",
    "group": "example"
  }
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_chart_annotation_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [MetrikaChartAnnotation](#entity-MetrikaChartAnnotation)

Note in the chart.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": 0,
  "date": "2025-01-01",
  "time": "12:00:00",
  "title": "example",
  "message": "example",
  "group": "example"
}
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>
<!-- endsource: en/management-src/Notes-in-charts/create.md -->

[*Deprecated]: No longer supported, please use an alternative and newer version.