/databases
0.1.0Unchanged since publicationCreate a MariaDB database
databasesallUrbeStack creates the database, records its owner, and returns the database in database. Administrators must supply user to name the customer and can choose any valid name. Customers create databases for themselves. Resellers can create databases for themselves or supply user to select one of their customers. For customers and resellers, name must start with the owner's username followed by an underscore, as in CUSTOMER_.
The API returns 400 for an administrator request without user or for an invalid name. A valid name contains 1 to 64 ASCII letters, digits, or underscores. If the name already exists in MariaDB without a recorded owner, creation is refused. An administrator can assign that database to a customer using POST /databases/{name}/adopt.
As a command
Run as root on the serverRequest body
JSON· 2 fieldsnameDatabaseNameRequireduserUsernameExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/databases" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "alice",
"user": "alice"
}'201 Created{
"database": {
"created_at": "2026-09-09T10:15:00Z",
"id": 1,
"measured_at": "text",
"name": "alice",
"size_bytes": 1,
"user": "alice",
"user_id": 2
}
}Errors
11 errors, each a status and a sentence400--name is required400A <what> name is 1 to 64 letters, digits or underscores400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved400user is required: the customer the database is for401Authentication required404MariaDB has no database named <name>409Database <name> already exists409Database <name> exists in MariaDB with no record of whose it is; an administrator can adopt it: urbestack-database-adopt --name <name> --user 409The disk allowance of <user.name> is used up: 409The package <p.name> allows <limit> urbestack.com/docs/api/post-databases/