[Experimental]
Create a branch
⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Creates a Branch under the specified Project. The first Branch in a Project is always created with isDefault=true and role=production regardless of the body value. Later Branches are created with role=preview. Setting isDefault=true while another Branch already holds the default atomically swaps the default flag only.
post/v1/projects/{projectId}/branches
Request
- Base URL: https://api.prisma.io
- URL: https://api.prisma.io/v1/projects/{projectId}/branches
- 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
projectIdstring required
Request body
Response
Created the Branch.
Changes
No recorded changes to this operation across all 1 revision of this API.