Zum Hauptinhalt springen

Create a MySQL database with a MySQL user

POST/projects/{projectId}/mysql-databases/
v2
POST
database-create-mysql-database

Request

  • projectIdstring (uuid)
    required

    ID of the Project to create a MySQLDatabase for.

Responses

application/json

Created

  • idstring (uuid)
    required
  • userIdstring (uuid)
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"database":{"characterSettings":{"characterSet":"utf8mb4","collation":"utf8mb4_general_ci"},"description":"string","projectId":"f0f86186-0a5a-45b2-aa33-502777496347","version":"8.0"},"user":{"accessLevel":"full","externalAccess":true,"password":"string"}}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/f0f86186-0a5a-45b2-aa33-502777496347/mysql-databases