---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.ru/dev/metrika/en/management/openapi/label/updateLabel.md
  - https://yandex.ru/dev/metrika/ru/management/openapi/label/updateLabel.md
  - href: en/management/openapi/label/updateLabel.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/metrika/en/llms.txt

<!-- source: en/management-src/Managing-labels/updateLabel.md -->
<div class="openapi">

# Changing a label

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

Changes the specified label.

## Request

<div class="openapi__requests">

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

<div class="openapi__request">

PUT {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/management/v1/label/{labelId}
```

</div>

</div>

</div>

### Path parameters

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

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

ID of the label that you want to change.
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "label": {
    "id": 0,
    "name": "example"
  }
}
```

{% endcut %}

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

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

Label.

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

```json translate=no
{
  "id": 0,
  "name": "example"
}
```

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

</div>

<div class="openapi-entity">

### Label {#entity-Label}

Label.

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

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

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

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

Label name.

_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}
||
|#{.json-schema-properties}

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

```json translate=no
{
  "id": 0,
  "name": "example"
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "label": {
    "id": 0,
    "name": "example"
  }
}
```

{% endcut %}

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

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

Label.

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

```json translate=no
{
  "id": 0,
  "name": "example"
}
```

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

</div>

</div>

</div>
<!-- endsource: en/management-src/Managing-labels/updateLabel.md -->

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