Self Help Documentation
< All Topics

software/deploynewnodejsapp

Description

Deploys a new Node.js application for an existing domain from a given SPanel user account.

Warning
If port is provided, it must be in the range 3000-3500. If port is omitted, the system will automatically assign an available port.

Info
When application_type is n8n, the API forces deployment to the main URL path and uses a dedicated install path (N8N). The updates parameter is applicable to n8n deployments.

Parameters

FieldTypeRequiredDescription
tokenstringYesAuthorizing API token – check API Basics for more information.
accountuserstringYesThe SPanel user account that is being managed or viewed.
actionstringYesThe category and function being executed.
domainstringYesThe domain to deploy the application on. Must be a valid domain name already available in SPanel.
urlstringNoThe application URL path (for example: myapp). If omitted, the app will be installed in the root of the domain. Not used when application_type is n8n – it always installs in the root directory.
pathstringYesPath to the application’s executable file within the user account, for example a *.yml or *.js file. Not used when application_type is n8n.
portintNoOptional port for the application. If provided, must be between 3000 and 3500. If omitted, SPanel will auto-assign a port. Not used when application_type is n8n.
application_typestringNoApplication type (nodejs or n8n). Defaults to nodejs.
updatesboolNoAutomatic updates flag (only applicable to n8n).

Example

You can find more information about the Endpoint URL in our API Basics article.

Output

Table of Contents