Adding a delegate

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

Request

PUT

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

Body

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

Name

Description

delegate

Type: Delegate

Information about the delegate.

Delegate

Information about the delegate.

Name

Description

perm*

Type: string

Access level. Acceptable values:

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

user_login*

Type: string

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

Min length: 1

comment

Type: string

Any comment. Maximum 255 characters.

Min length: 0

Max length: 255

created_at

Type: string<date-time>

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

Responses

200 OK

OK

Body

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

Name

Description

delegates

Type: Delegate[]

The list of delegates.
Information about the delegate.

No longer supported, please use an alternative and newer version.