Recover a deleted branch

Recovers a deleted branch within the 7-day deletion recovery period.
The branch must have been soft deleted and not yet permanently deleted.
Recovery restores the branch and its endpoints to an idle state.
Connection strings remain valid after recovery.
TTL branches become non-TTL branches after recovery.

To list deleted branches available for recovery, use GET /projects/{project_id}/branches?include_deleted=true.

Path Params
string
required
^[a-z0-9-]{1,60}$

The Neon project ID

string
required
^[a-z0-9-]{1,60}$

The branch ID

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json