Add a mailing list
A mailing list is an email address that is associated with a group of mailboxes. Messages that are sent to the mailing list will be delivered to each of the associated mailboxes.
This request is used for adding a mailing list for the domain.
Request syntax
The request should be sent over the HTTPS protocol using the POST method.
POST /api2/admin/email/ml/add
Host: pddimp.yandex.ru
PddToken: <PDD token>
...
domain=<domain name>
&maillist=<email or username of the mailing list>
Headers:
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
maillist | String | The email address of the mailing list, in the format “username@domain.ru” or “username”. |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
maillist | String | The email address of the mailing list, in the format “username@domain.ru” or “username”. |
POST /api2/registrar/email/ml/add
Host: pddimp.yandex.ru
PddToken: <PDD token>
Authorization: OAuth <OAuth token>
...
domain=<domain name>
&maillist=<email or username of the mailing list>
Headers:
Name | Description |
---|---|
PddToken | |
Authorization |
Name | Description |
---|---|
PddToken | |
Authorization |
Parameters:
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
maillist | String | The email address of the mailing list, in the format “username@domain.ru” or “username”. |
Parameter | Type | Value |
---|---|---|
Mandatory | ||
domain | String | Name of the domain. |
maillist | String | The email address of the mailing list, in the format “username@domain.ru” or “username”. |
Request example
POST /api2/admin/email/ml/add HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
...
domain=domain.com&maillist=newmaillist
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -d 'domain=domain.com&maillist=newmaillist' 'https://pddimp.yandex.ru/api2/admin/email/ml/add'
POST /api2/admin/email/ml/add HTTP/1.1
Host: pddimp.yandex.ru
PddToken: 123456789ABCDEF0000000000000000000000000000000000000
Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000
...
domain=domain.com&maillist=newmaillist
curl -H 'PddToken: 123456789ABCDEF0000000000000000000000000000000000000' -H 'Authorization: OAuth 00123456789ABCDEF00000000000000000000000000000000000' -d 'domain=domain.com&maillist=newmaillist' 'https://pddimp.yandex.ru/api2/admin/email/ml/add'
Response structure
Name | Type of value | Description |
---|---|---|
domain | String | Name of the domain. |
maillist | String | Email address of the mailing list. |
uid | Integer | ID of the mailing list. |
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. |
maillist | String | Email address of the mailing list. |
uid | Integer | ID of the mailing list. |
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:
|