v1
latestSwagger 2.02026-07-13180103150.2 KBdatabase
Resets a non-production database branch by re-forking it from a source branch (defaults to the production branch). If the target branch is already in sync with the source, returns the existing connection string without performing a reset, unless force=true is passed. The production branch cannot be reset.
post/sites/{site_id}/database/branch/{branch_id}/reset
Query parameters
forceboolean
If true, resets the branch even when it is already in sync with the source.
role'netlifydb_owner' | 'netlifydb_readonly'
The database role to use for the returned connection string. Defaults to netlifydb_owner if not specified.
Request body
Response
OK