- API v3 Introduction
- 3rd Party API Integrations
- DNS Integrations
- Server Integrations
- External Backup Storages
- List 3rd Party API IntegrationsGET
- 3rd Party API Integration ObjectGET
- Delete 3rd Party API IntegrationDELETE
- Servers
- Manage
- Health & Monitoring
- Databases
- Database Users
- System Users
- Deployment Keys
- Services
- Cron Job
- Supervisor
- SSH Keys
- SSH Session
- SSH Config
- Activity Logs
- Security - Firewall
- Security - Fail2Ban
- Settings - PHP
- Settings - Auto Security Update
- Settings - Change IP Address
- Web Applications
- Manage
- Custom WebApp
- One Click Installer
- Git Deployment
- PHP Script Installer
- WebApp Alias
- List Web ApplicationsGET
- Web Application ObjectGET
- Set as Default Web Application In The ServerPOST
- Delete Web ApplicationDELETE
- Domain Name
- SSL/TLS
- SSL Basic (WebApp SSL)
- SSL Advanced (Domain SSL) For Business/Enterprise
- Check SSL Method (Basic/Advanced) & AutoSSL Status
- Update/Change SSL Method (Basic/Advanced) & AutoSSL Status
- SSL Advanced – Install/Deploy Domain SSL
- SSL Advanced – Domain SSL Object
- SSL Advanced – Update Domain SSL Config
- SSL Advanced – Redeploy Domain SSL (Let’s Encrypt only)
- SSL Advanced – Delete Domain SSL
- Cloning
- Tools
- WordPress - RunCloud Hub
- WordPress - Staging
- WordPress - General Settings
- Activity Logs
- Settings
- Backup
- Atomic Deployment
- Static Data
Set as Default Web Application In The Server
POST
/servers/{{serverId}}/webapps/{{webappId}}/default
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
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/v3/servers/{{serverId}}/webapps/{{webappId}}/default'
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": 646,
"server_user_id": 1647,
"name": "app-schimmel",
"rootPath": "/home/runcloud/webapps/app-schimmel",
"publicPath": "/home/runcloud/webapps/app-schimmel",
"phpVersion": "php81rc",
"stack": "hybrid",
"stackMode": "production",
"type": "wordpress",
"defaultApp": true,
"alias": null,
"pullKey1": "rlNDkqV0UpEISUgM526HUEJJ1720508533",
"pullKey2": "Zs3lqh0HymHDA6cs5uLHRZNVJPMVJTox",
"created_at": "2024-07-09 07:02:13"
}
Modified at 2024-10-16 08:56:43