Skip to main content
PATCH
Set database environment label
Sets the environment label of one database. Selected-database keys can change databases they are assigned to; full-account keys can change any database you own. API access requires a Pro or Business plan.
This route changes the label only. It does not change the database’s scheduled backup choice, which is set when the database is created. See Backups and retention for the backup policy per environment.

Request body

Response

200 OK
The change is recorded in the database’s activity log.

Errors

The CLI equivalent is dbhost databases environment <id> <production|staging|development|other|none>. In the dashboard, see Databases.