Adding a delegate

Adds a username to the list of delegates for the current account.

  1. Request syntax
  2. In the request body
  3. Response format

Request syntax

https://api-audience.yandex.ru/v1/management/delegate
 ? 

In the request body


{
    "delegate" : {
        "user_login" :  < string > ,
        "perm" :  < delegate_type > ,
        "comment" :  < string > 
    }
}
Parameters Description
delegate Information about the delegate.
delegate
user_login

The username of a user to grant access to the current user's account.

perm The access level.

Possible values:

  • view – Read-only access to the account.
  • edit – Full access to the account.
comment

Any comment. Maximum 255 characters.

Parameters Description
delegate Information about the delegate.
delegate
user_login

The username of a user to grant access to the current user's account.

perm The access level.

Possible values:

  • view – Read-only access to the account.
  • edit – Full access to the account.
comment

Any comment. Maximum 255 characters.

Sample request

PUT https://api-audience.yandex.ru/v1/management/delegate?

Response format


{
    "delegates" : [ {
        "user_login" :  < string > ,
        "perm" :  < delegate_type > ,
        "created_at" :  < date > ,
        "comment" :  < string > 
    }, ... ]
}
Parameters Description
delegates The list of delegates.
delegates
user_login

The username of a user to grant access to the current user's account.

perm The access level.

Possible values:

  • view – Read-only access to the account.
  • edit – Full access to the account.
created_at

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

comment

Any comment. Maximum 255 characters.

Parameters Description
delegates The list of delegates.
delegates
user_login

The username of a user to grant access to the current user's account.

perm The access level.

Possible values:

  • view – Read-only access to the account.
  • edit – Full access to the account.
created_at

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

comment

Any comment. Maximum 255 characters.