Skip to main content
PUT
cURL
This endpoint has a rate limit of 1 request every 3 seconds, shared with the other endpoints that change databases (create, update, update credentials and delete).
A memory change is only applied the next time the database is started, stopped or restarted.

Authorizations

Authorization
string
header
required

Your CamposCloud API token, sent as Authorization: Bearer <token>.

Path Parameters

databaseId
string
required

ID of the database.

Pattern: ^[a-f0-9]{24}$

Body

application/json
name
string

Display name: letters, numbers, spaces, _, . and -, starting with a letter or number, without leading or trailing spaces.

Required string length: 3 - 50
Pattern: ^[A-Za-z0-9][A-Za-z0-9 _.-]*$
Example:

"main-db"

memoryMB
integer

Memory in MB. Must be a JSON number (not a string), at least the minimum allowed for databases (512 MB by default) and must fit in the memory left in the plan.

Required range: x >= 1
Example:

512

Response

The updated database.

message
string
Example:

"Database instance updated successfully."

database
object