[Experimental]

Soft-delete a branch

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

Soft-deletes a Branch (sets deletedAt). Refuses if the Branch is the Project's current default, the Project's production Branch, or has live members.

delete/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

Response

Branch soft-deleted.

Changes

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