Skip to main content
PUT
Update Preview Policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgId
string
required

The organization's id (UUID) or slug — either form is accepted.

projectId
string
required

The project's id (UUID) or slug — either form is accepted.

Body

application/json
enabled
boolean
required
sourceEnvironment
string
required
Pattern: ^[a-z][a-z0-9-]{0,38}$
sourceDatabaseId
string | null
required
allowProductionData
boolean
required
expiresInDays
integer
deleteOnPreviewClose
boolean

Response

Preview database branch policy updated.