All Products
Search
Document Center

AnalyticDB:SetAsDefaultBranch

Last Updated:Jun 29, 2026

Sets the default branch for a Supabase project.

Operation description

Sets a specified branch as the default branch for a Supabase project.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID. This parameter is required when you create a primary branch. When you create a sub-branch, this parameter inherits the region of the primary branch by default.

cn-beijing

ProjectId

string

Yes

The ID of the Supabase project that corresponds to the primary branch.

spb-xxxx

BranchId

string

Yes

The branch ID that uniquely identifies a Supabase branch.

br-xxxx

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The request ID.

ABB39CC3-4488-4857-905D-2E4A051D****

Examples

Success response

JSON format

{
  "RequestId": "ABB39CC3-4488-4857-905D-2E4A051D****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.