Chelabase
ManagementData api

Stop serving a Postgres database

DELETE
/v1/databases/{id}/branches/{branch_id}/pg-databases/{name}/data-api

Stops serving the database at once. The chelabase schema and the grants stay, so enabling again is instant; remove=true also drops the chelabase schema and its event trigger (grants to anon and authenticated stay). Answers 204 after the worker has done it. The branch's main database can't be disabled.

Authorization

bearer
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Database id

Formatuuid
branch_id*string

Branch id

Formatuuid
name*string

The Postgres database's name

Query Parameters

remove?boolean

Also drop the chelabase machinery in the database

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches/497f6eca-6276-4993-bfeb-53cbbbba6f08/pg-databases/string/data-api"
Empty