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:
|
|
user_login* |
Type: string The username of a user to grant access to the current user's account. Min length: |
|
comment |
Type: string Any comment. Maximum 255 characters. Min length: Max length: |
|
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. |
No longer supported, please use an alternative and newer version.
Was the article helpful?
Previous