API Reference
- Introduction
- Authorization
- GETVersion
- GETHealthcheck
- GETEnable API
- GETDisable API
- Servers
- Teams
- Projects
- Private Keys
- Deployments
- Resources
- Applications
- Databases
- Services
Databases
Update
Update database by UUID.
PATCH
/
databases
/
{uuid}
Copy
curl --request PATCH \
--url https://app.coolify.io/api/v1/databases/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"image": "<string>",
"is_public": true,
"public_port": 123,
"limits_memory": "<string>",
"limits_memory_swap": "<string>",
"limits_memory_swappiness": 123,
"limits_memory_reservation": "<string>",
"limits_cpus": "<string>",
"limits_cpuset": "<string>",
"limits_cpu_shares": 123,
"postgres_user": "<string>",
"postgres_password": "<string>",
"postgres_db": "<string>",
"postgres_initdb_args": "<string>",
"postgres_host_auth_method": "<string>",
"postgres_conf": "<string>",
"clickhouse_admin_user": "<string>",
"clickhouse_admin_password": "<string>",
"dragonfly_password": "<string>",
"redis_password": "<string>",
"redis_conf": "<string>",
"keydb_password": "<string>",
"keydb_conf": "<string>",
"mariadb_conf": "<string>",
"mariadb_root_password": "<string>",
"mariadb_user": "<string>",
"mariadb_password": "<string>",
"mariadb_database": "<string>",
"mongo_conf": "<string>",
"mongo_initdb_root_username": "<string>",
"mongo_initdb_root_password": "<string>",
"mongo_initdb_init_database": "<string>",
"mysql_root_password": "<string>",
"mysql_user": "<string>",
"mysql_database": "<string>",
"mysql_conf": "<string>"
}'
Copy
This response does not have an example.
Authorizations
Go to Keys & Tokens
/ API tokens
and create a new token. Use the token as the bearer token.
Path Parameters
UUID of the database.
Body
application/json
Database data
The body is of type object
.
Response
200
Database updated
Copy
curl --request PATCH \
--url https://app.coolify.io/api/v1/databases/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"image": "<string>",
"is_public": true,
"public_port": 123,
"limits_memory": "<string>",
"limits_memory_swap": "<string>",
"limits_memory_swappiness": 123,
"limits_memory_reservation": "<string>",
"limits_cpus": "<string>",
"limits_cpuset": "<string>",
"limits_cpu_shares": 123,
"postgres_user": "<string>",
"postgres_password": "<string>",
"postgres_db": "<string>",
"postgres_initdb_args": "<string>",
"postgres_host_auth_method": "<string>",
"postgres_conf": "<string>",
"clickhouse_admin_user": "<string>",
"clickhouse_admin_password": "<string>",
"dragonfly_password": "<string>",
"redis_password": "<string>",
"redis_conf": "<string>",
"keydb_password": "<string>",
"keydb_conf": "<string>",
"mariadb_conf": "<string>",
"mariadb_root_password": "<string>",
"mariadb_user": "<string>",
"mariadb_password": "<string>",
"mariadb_database": "<string>",
"mongo_conf": "<string>",
"mongo_initdb_root_username": "<string>",
"mongo_initdb_root_password": "<string>",
"mongo_initdb_init_database": "<string>",
"mysql_root_password": "<string>",
"mysql_user": "<string>",
"mysql_database": "<string>",
"mysql_conf": "<string>"
}'
Copy
This response does not have an example.
Assistant
Responses are generated using AI and may contain mistakes.