Set the interface language
This request is used for setting the language of the email interface for the domain.
Request syntax
The request should be sent over the HTTPS protocol using the POST method.
POST /api2/admin/domain/settings/set_country
Host: pddimp.yandex.ru
PddToken: <PDD token>
...
domain=<domain name>
&country=<interface language>
Headers:
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
country | String | The default language of the mailbox interface for the domain. Included in the response if the domain has been verified (the Possible values:
|
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
country | String | The default language of the mailbox interface for the domain. Included in the response if the domain has been verified (the Possible values:
|
POST /api2/registrar/domain/settings/set_country
Host: pddimp.yandex.ru
PddToken: <PDD token>
Authorization: OAuth <OAuth token>
...
domain=<domain name>
&country=<interface language>
Headers:
Name | Description |
---|---|
PddToken | |
Authorization |
Name | Description |
---|---|
PddToken | |
Authorization |
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
country | String | The default language of the mailbox interface for the domain. Included in the response if the domain has been verified (the Possible values:
|
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
country | String | The default language of the mailbox interface for the domain. Included in the response if the domain has been verified (the Possible values:
|
Request example
POST /api2/admin/domain/settings/set_country HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
...
domain=domain.com&country=ru
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -d 'domain=domain.com&country=ru' 'https://pddimp.yandex.ru/api2/admin/domain/settings/set_country'
POST /api2/admin/domain/settings/set_country HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000
...
domain=domain.com&country=ru
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -H 'Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000' -d 'domain=domain.com&country=ru' 'https://pddimp.yandex.ru/api2/admin/domain/settings/set_country'
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:
|