[Experimental]

Update a branch

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Promotes a Branch to be the Project's default. Only isDefault is mutable — gitName rename and role changes are rejected.

patch/v1/branches/{branchId}

Request

  • Base URL: https://api.prisma.io
  • URL: https://api.prisma.io/v1/branches/{branchId}
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
    • HTTP bearer

Path parameters

branchIdstring required

Request body

isDefaultboolean nullable

Response

Branch updated.

Changes

No recorded changes to this operation across all 1 revision of this API.