Skip to main content
POST
Rebase a branch onto a different parent branch (as a new branch)

Authorizations

X-API-Key
string
header
required

Headers

customer
string
required

Workspace identifier

Path Parameters

projectId
string
required

Project UUID, not a slug. Resolve a slug with GET /project/slug/{slug} using the same workspace and credentials, then pass the returned id.

id
string
required

Body

application/json
newParentId
string | null
required

Branch id to replay this branch onto. null (or "master") = the project Base.

name
string

Name for the new branch. Defaults to " (rebased)".

Response

200 - application/json
id
string
required
number
number
required