UAPI Functions - Ftp::set_welcome_message

Description

This function sets the FTP welcome message.

Examples 


 cPanel or Webmail Session URL

https://hostname.example.com:2083/cpsess##########/execute/Ftp/set_welcome_message?message=Greetings%2C%20Professor%20Falken.

 LiveAPI PHP Class

$cpanel new CPANEL(); // Connect to cPanel - only do this once.
  
// Set the FTP welcome message.
$welcome $cpanel->uapi(
    'Ftp''set_welcome_message',
    array(
        'message'    => 'Greetings, Professor Falken.',
         )
);

 LiveAPI Perl Module

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
  
# Set the FTP welcome message.
my $welcome $cpliveapi->uapi(
    'Ftp''set_welcome_message',
    {
        'message'    => 'Greetings, Professor Falken.',
    }
);

 cPanel Template Toolkit

<!-- Set the FTP welcome message. -->
[% execute( 'Ftp', 'set_welcome_message', { message => 'Greetings, Professor Falken.' } ); %]

 Command Line

uapi --user=username Ftp set_welcome_message message='Greetings, Professor Falken.'

 

Notes:

  • You must URI-encode values.
  • username represents your account-level username.

 Output (JSON)

   "messages":null,
   "errors":null,
   "status":1,
   "metadata":{ 
 
   },
   "data":null
}

Note:

Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.

 

Parameters

 Parameter 

Type

Description

 Possible values 

Example

message

 string 

Required

 The cPanel account's new FTP welcome message. 

A string.

 Greetings, Professor Falken. 

 

Returns

This function returns only metadata.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....