---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/metrika/en/management/openapi/counter/undeleteCounter.md
  - https://yandex.com/dev/metrika/ru/management/openapi/counter/undeleteCounter.md
  - href: en/management/openapi/counter/undeleteCounter.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.com/dev/metrika/en/llms.txt

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

# Restoring a tag

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

Restores a deleted tag.

## 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}/undelete
```

</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 restore.
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "success": true
}
```

{% endcut %}

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

_success_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean

Result of performing the action.

_Default:_{.json-schema-reset .json-schema-value} `true`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>
<!-- endsource: en/management-src/Managing-counters/undeleteCounter.md -->

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