Skip to main content
POST
Give a site's branch a fresh copy of the live database

Authorizations

Authorization
string
header
required

A company admin credential for your company, or a droplet installation token with the website scope for reads, except on the share routes, which refuse a droplet token.

Path Parameters

id
string<uuid>
required

The site's id.

slug
string
required

The slug of one of the site's branches.

Required string length: 1 - 40
Pattern: ^[a-z0-9]+(-[a-z0-9]+)*$

Body

application/json

The body of a database reset takes no field. The branch is named by the path, and its database is reset to a fresh tables-only copy of the live site's.

Response

The branch's database is fenced and its reset is in flight, or was already. The branch is in the body.

One branch.

branch
object
required

The branch of a site: a second site, cloned from the published content of its parent and published at once, so it renders what the parent renders. It is private, owned as the parent is, and has no shares. Only its owner and company admins can open it, in the frame at frame_path. It is edited and published through the files, pages and publish operations with site_id as the site id, which serve a member's branch to a company admin who holds a kept admin row as they serve its parent; the parent never changes.

status
integer
required

The HTTP status.

meta
object
required

Response metadata included on every response body.