Update a mailing list
Request
|
Parameter |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
|
header |
string |
true |
Determines the expected format and data type to retrieve the response data. Value: |
|
|
path |
string |
true |
The ID of the email list to be updated. |
|
|
path |
string |
true |
The supported file format for getting a response. Possible values: |
|
|
query |
string |
true |
The API key of your account. |
|
|
body |
string |
true |
The name of the email list. |
|
|
body |
string |
false |
The URL of the page displayed at the end of the subscription process. |
|
|
body |
string |
false |
The URL of the redirect page when users unsubscribe from your email list. |
|
|
body |
array |
true |
The Preferences field options.
Possible values can be
|
|
|
body |
string |
false |
The preference page id. |
POST https://{hostname}/v3/lists/{MailingListID}/update.{Format}?apikey=
Request body:
{
"Name":"New List",
"ConfirmationPage":"www.someUrl.com",
"RedirectAfterUnsubscribePage":"www.someUrl.com",
"Preferences": {
"SelectType": "SingleSelect",
"Options": [
"option a",
"option b"
]
},
"PreferencePageId" : null
}
Response
|
Status |
Description |
Headers |
Schema |
|---|---|---|---|
|
|
The request is successful. |
|
N/A |
{
"Code": 0,
"Error": null,
"Context": "e5f6c0a3-1fe6-4d89-951e-eafae0b01368"
}-
Code- the response code. This is0if successful. -
Error- the response error message. This isnullif successful. -
Context- the ID of the updated email list.