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

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

# Adding a representative

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

Adds a user login to the list of representatives for the current account.

## 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/delegates
```

</div>

</div>

</div>

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "delegate": {
    "user_login": "example",
    "created_at": "2025-01-01T00:00:00Z",
    "comment": "example"
  }
}
```

{% endcut %}

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

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

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

```json translate=no
{
  "user_login": "example",
  "created_at": "2025-01-01T00:00:00Z",
  "comment": "example"
}
```

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

</div>

<div class="openapi-entity">

### DelegateE {#entity-DelegateE}

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

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

The login of the user who requires full access to the current user account.

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

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

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

Custom comment. The maximum number of characters is 255.

_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}
||
||

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

Date when the permission was granted in YYYY-MM-DD'T'hh:mm:ssZ format.

_Example:_{.json-schema-reset .json-schema-example} `2025-01-01T00:00:00Z`
{.table-cell}
||
|#{.json-schema-properties}

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

```json translate=no
{
  "user_login": "example",
  "created_at": "2025-01-01T00:00:00Z",
  "comment": "example"
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "delegates": [
    {
      "user_login": "example",
      "created_at": "2025-01-01T00:00:00Z",
      "comment": "example"
    }
  ]
}
```

{% endcut %}

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

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

List of representatives who were granted full access to the current user account.

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

```json translate=no
[
  {
    "user_login": "example",
    "created_at": "2025-01-01T00:00:00Z",
    "comment": "example"
  }
]
```

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

</div>

</div>

</div>
<!-- endsource: en/management-src/Managing-representatives/addDelegate.md -->

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