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
Test
RAM authorization
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.