Adding a representative

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

Request syntax

POST https://api-metrika.yandex.net/management/v1/delegates

In the request body


{
    "delegate" : {
        "user_login" :  < string > ,
        "comment" :  < string > 
    }
}
Parameters Description
delegate no description
delegate
user_login

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

comment

Arbitrary comment. The maximum number of characters is 255.

Parameters Description
delegate no description
delegate
user_login

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

comment

Arbitrary comment. The maximum number of characters is 255.

Sample request

POST https://api-metrika.yandex.net/management/v1/delegates

Response format


{
    "delegates" : [ {
        "user_login" :  < string > ,
        "created_at" :  < date > ,
        "comment" :  < string > 
    }, ... ]
}
Parameters Description
delegates List of representatives who have been granted full access to the current user account.
delegates
user_login

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

created_at

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

comment

Arbitrary comment. The maximum number of characters is 255.

Parameters Description
delegates List of representatives who have been granted full access to the current user account.
delegates
user_login

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

created_at

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

comment

Arbitrary comment. The maximum number of characters is 255.