Changing the account list

Changes the list of accounts that the current user is a representative of. The list of accounts is updated in accordance with the list of logins in the input structure.

Note.

If the input structure doesn't specify a user login that the current user is a representative of, full access to this user's account is revoked.

If the input structure specifies a user login that is not included in the current list of accounts, full access to this user's account is NOT granted.

Request syntax

PUT https://api-metrika.yandex.net/management/v1/accounts

In the request body


{
    "accounts" : [ {
        "user_login" :  < string > 
    }, ... ]
}
Parameters Description
accounts The list of accounts that the current user is a representative of.
accounts
user_login

Login of a user who granted full access to their tags for the current user.

Parameters Description
accounts The list of accounts that the current user is a representative of.
accounts
user_login

Login of a user who granted full access to their tags for the current user.

Sample request

PUT https://api-metrika.yandex.net/management/v1/accounts

Response format


{
    "accounts" : [ {
        "user_login" :  < string > ,
        "created_at" :  < date > 
    }, ... ]
}
Parameters Description
accounts The list of accounts that the current user is a representative of.
accounts
user_login

Login of a user who granted full access to their tags for the current user.

created_at

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

Parameters Description
accounts The list of accounts that the current user is a representative of.
accounts
user_login

Login of a user who granted full access to their tags for the current user.

created_at

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