cURL
curl --request POST \ --url https://api.sevalla.com/v2/databases \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "company_id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1", "location": "us-central1", "resource_type": "db1", "display_name": "test-db", "db_name": "test-db", "db_password": "example-password", "db_user": "example-user", "type": "postgresql", "version": "15" }'
{ "database": { "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1" } }
Create a new database with the specified configuration.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Response object of create database request
The response is of type object.
object
Was this page helpful?