- 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
- Static Data
Create DB
POST
/v2/servers/{{serverId}}/databases
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
Example
{
"name": "api_db"
}
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}}/databases' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "api_db"
}'
Responses
🟢200Success
application/json
Body
id
integer
required
name
string
required
collation
null
required
created_at
string
required
Example
{
"id": 499,
"name": "dbvalorant",
"collation": null,
"created_at": "2024-07-18 03:27:42"
}
Modified at 2024-09-04 07:15:51