Adding a representative

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

Request

POST

https://api-metrica.yandex.net/management/v1/delegates

Body

application/json
{
    "delegate": {
        "user_login": "string",
        "created_at": "2022-12-29T18:02:01Z",
        "comment": "string"
    }
}

Name

Description

delegate*

Type: DelegateE

DelegateE

Name

Description

user_login*

Type: string

Login of the user to get full access to the current user account.

comment

Type: string

Arbitrary comment. The maximum number of characters is 255.

Min length: 0

Max length: 255

created_at

Type: string<date-time>

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

Responses

200 OK

OK

Body

application/json
{
    "delegates": [
        {
            "user_login": "string",
            "created_at": "2022-12-29T18:02:01Z",
            "comment": "string"
        }
    ]
}

Name

Description

delegates

Type: DelegateE[]

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