PUT
/
databases
/
{id}
Update a database
curl --request PUT \
  --url https://api.sevalla.com/v2/databases/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "resource_type": "db1",
  "display_name": "test-db"
}'
{
  "database": {
    "id": "54fb80af-576c-4fdc-ba4f-b596c83f15a1",
    "display_name": "test-db",
    "status": "updating"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Body

application/json
resource_type
enum<string>

the resource type (database size) to be updated

Available options:
db1,
db2,
db3,
db4,
db5,
db6,
db7,
db8,
db9
Example:

"db1"

display_name
string
Example:

"test-db"

Response

Response object of update database request

database
object
required