- API v2 Introduction
- 3rd Party API Integration
- Servers
- Manage
- Health & Monitoring
- Database
- Database Users
- System Users
- SSH Keys
- Cron Job
- Supervisor
- Services
- Security - Firewall
- Security - Fail2Ban
- SSH Configuration
- Server Activity Logs
- Settings - PHP
- Deployment Keys
- Settings - Auto Security Update
- Web Applications
- Manage
- Custom WebApp
- Git Deployment
- PHP Script Installer
- WebApp Alias
- Set as Default Web AppPOST
- Remove Default Web AppDELETE
- List Web AppGET
- Web App ObjectGET
- Web App Activity LogGET
- Delete Web AppDELETE
- Domain Name
- Settings
- Tools
- SSL/TLS
- Static Data
Create Web App (custom)
POST
/v2/servers/{{serverId}}/webapps/custom
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
name
string
required
domainName
string
required
user
integer
optional
publicPath
null
optional
phpVersion
string
optional
stack
string
optional
stackMode
string
optional
clickjackingProtection
boolean
optional
xssProtection
boolean
optional
mimeSniffingProtection
boolean
optional
processManager
string
optional
processManagerMaxChildren
integer
optional
processManagerMaxRequests
integer
optional
openBasedir
string
optional
timezone
string
optional
disableFunctions
string
optional
maxExecutionTime
integer
optional
maxInputTime
integer
optional
maxInputVars
integer
optional
memoryLimit
integer
optional
postMaxSize
integer
optional
uploadMaxFilesize
integer
optional
sessionGcMaxlifetime
integer
optional
allowUrlFopen
boolean
optional
Example
{
"name": "eyeshield-testing",
"domainName": "eyeshield.alirahman.site",
"user": 1647,
"publicPath": "/public",
"phpVersion": "php80rc",
"stack": "hybrid",
"stackMode": "production",
"clickjackingProtection": true,
"xssProtection": true,
"mimeSniffingProtection": true,
"processManager": "ondemand",
"processManagerMaxChildren": 50,
"processManagerMaxRequests": 500,
"openBasedir": "/home/myuser/webapps/testing:/var/lib/php/session:/tmp",
"timezone": "UTC",
"disableFunctions": "getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server",
"maxExecutionTime": 30,
"maxInputTime": 60,
"maxInputVars": 1000,
"memoryLimit": 256,
"postMaxSize": 256,
"uploadMaxFilesize": 256,
"sessionGcMaxlifetime": 1440,
"allowUrlFopen": true
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://manage.runcloud.io/api/v2/servers/{{serverId}}/webapps/custom' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "eyeshield-testing",
"domainName": "eyeshield.alirahman.site",
"user": 1647,
"publicPath": "/public",
"phpVersion": "php80rc",
"stack": "hybrid",
"stackMode": "production",
"clickjackingProtection": true,
"xssProtection": true,
"mimeSniffingProtection": true,
"processManager": "ondemand",
"processManagerMaxChildren": 50,
"processManagerMaxRequests": 500,
"openBasedir": "/home/myuser/webapps/testing:/var/lib/php/session:/tmp",
"timezone": "UTC",
"disableFunctions": "getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server",
"maxExecutionTime": 30,
"maxInputTime": 60,
"maxInputVars": 1000,
"memoryLimit": 256,
"postMaxSize": 256,
"uploadMaxFilesize": 256,
"sessionGcMaxlifetime": 1440,
"allowUrlFopen": true
}'
Responses
🟢200Success
application/json
Body
id
integer
required
server_user_id
integer
required
name
string
required
rootPath
string
required
publicPath
string
required
phpVersion
string
required
stack
string
required
stackMode
string
required
type
string
required
defaultApp
boolean
required
alias
string | null
required
pullKey1
string
required
pullKey2
string
required
created_at
string
required
Example
{
"id": 655,
"server_user_id": 1647,
"name": "eyeshield-testing",
"rootPath": "/home/runcloud/webapps/eyeshield-testing",
"publicPath": "/home/runcloud/webapps/eyeshield-testing",
"phpVersion": "php80rc",
"stack": "hybrid",
"stackMode": "production",
"type": "custom",
"defaultApp": false,
"alias": null,
"pullKey1": "5pGuNkULhLZHyXmTZQUoN4Xr1721180441",
"pullKey2": "f3qO5mNq50bMQV7VZGRKwCmfvcngInCX",
"created_at": "2024-07-17 01:40:41"
}
Modified at 2024-10-07 03:50:39