Description
This function changes a mailing list's password.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/Email/passwd_list?list=mylist&password=12345luggage
LiveAPI PHP Class
$cpanel = new CPANEL();
$change_passwd = $cpanel->uapi(
'Email', 'passwd_list',
array(
'list' => 'mylist',
'password' => '12345luggage',
)
);
LiveAPI Perl Module
my $cpliveapi = Cpanel::LiveAPI->new();
my $change_passwd = $cpliveapi->uapi(
'Email', 'passwd_list',
{
'list' => 'mylist',
'password' => '12345luggage',
}
);
cPanel Template Toolkit
[% execute('Email', 'passwd_list', { 'list' => 'mylist', 'password' => '12345luggage', }) %]
Command Line
uapi --user=username Email passwd_list list=mylist
|
Output (JSON)
{
"messages": null,
"errors": null,
"status": 1,
"data": null,
"metadata": {
"transformed": 1
}
}
Parameters
|
Parameter
|
Type
|
Description
|
Possible values
|
Example
|
|
list
|
string
|
Required
The mailing list.
|
The name of a Mailman mailing list on the cPanel account.
|
mylist
|
|
password
|
string
|
Required
The new password.
|
A secure password.
|
12345luggage
|
Returns
This function only returns metadata.