Changing list of accounts

Changes the list of accounts, the representative of which is a current user. The list of accounts is updated in accordance with the list of usernames in the input structure.

Note.

If the user login is not specified in the input structure, the representative of which is a current user, full account access for this user will be cancelled.

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

  1. Request syntax
  2. Request message body
  3. Response format

Request syntax

https://api-metrica.yandex.net/management/v1/accounts
 ? 

Request message body


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

User login, which has provided full access to its counters for the current user.

Request example

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

Response format


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

User login, which has provided full access to its counters for the current user.

created_at

Date of granting access in the format YYYY-MM-DD'T'hh:mm:ssZ.