Skip to main content

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":"string","collation":"string"},"description":"string","projectId":"f0f86186-0a5a-45b2-aa33-502777496347","version":"string"},"user":{"accessIpMask":"string","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