Databases
Set database environment label
Change a DBHost database’s environment label to production, staging, development, other or none through the API. Backup schedule is unchanged.
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.
The change is recorded in the database’s activity log.
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
Errors
The CLI equivalent is
dbhost databases environment <id> <production|staging|development|other|none>.
In the dashboard, see Databases.