Add a domain administrator proxy
The domain administrator proxy can manage mailboxes, but cannot manage the domain itself and its settings.
This request is used for adding a domain administrator proxy.
Request syntax
The request should be sent over the HTTPS protocol using the POST method.
POST /api2/admin/deputy/add
Host: pddimp.yandex.ru
PddToken: <PDD token>
...
domain=<domain name>
&login=<username of the administrator's proxy>
Headers:
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | Username of the proxy administrator. |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
login | String | Username of the proxy administrator. |
Request example
POST /api2/admin/deputy/add HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
...
domain=domain.com&login=mylogin
cURL
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -d 'domain=domain.com&login=mylogin' 'https://pddimp.yandex.ru/api2/admin/deputy/add'
Response structure
{
"domain": "{domain name}",
"success": "{status of request execution}",
"error": "{error code}"
}
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
success | String | Status of request execution. Possible values:
|
error | String | Error code. Included in the response if the request resulted in an error. Possible values:
|