Databases

Update a persistent storage or file storage by database UUID.

patch/databases/{uuid}/storages

Request

  • Base URL: https://app.coolify.io/api/v1
  • URL: https://app.coolify.io/api/v1/databases/{uuid}/storages
  • Auth: HTTP bearer

Path parameters

uuidstring required

UUID of the database.

Request body

uuidstring

The UUID of the storage (preferred).

idinteger

The ID of the storage (deprecated, use uuid instead).

type'persistent' | 'file' required

The type of storage: persistent or file.

is_preview_suffix_enabledboolean

Whether to add -pr-N suffix for preview deployments.

namestring

The volume name (persistent only, not allowed for read-only storages).

mount_pathstring

The container mount path (not allowed for read-only storages).

contentstring nullable

The file content (file only, not allowed for read-only storages). Changing the content of a file outside the resource directory needs the deploy permission.

Response

Storage updated.

object required

Changes