List the database's functions with their state on the branch
Authorization
bearer In: header
Path Parameters
Database id
uuidBranch id
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/branches/497f6eca-6276-4993-bfeb-53cbbbba6f08/functions"[ { "auth": "key", "created_at": "2019-08-24T14:15:22Z", "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6", "enabled": true, "health": "healthy", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "function", "last_error": "string", "name": "string", "rollout": { "deployment_id": "6ef0ac85-9892-4664-a2a5-58bf2af5a8a6", "error": "string", "started_at": "2019-08-24T14:15:22Z", "state": "pending" }, "run_as_active": true, "run_as_role": "string", "signing_secret": "string", "updated_at": "2019-08-24T14:15:22Z" }]Stop serving a Postgres database DELETE
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.
Enable, disable, roll back, or set the auth or run-as role on the branch PATCH
Applies the named fields in this order: `active_deployment_id`, `enabled`, `auth`, `run_as_role`. The run-as role is checked first (as for a secret key: you must be able to use the role; BYPASSRLS needs Admin), before anything is written.