v1

latestOpenAPI 3.1.02026-07-261344388.3 KB
Branches

Revert commit

Creates a new branch that reverts the project state to a specific commit.

post/api/projects/{projectId}/branches/{branchId}/revert

Path parameters

projectIdstring uuid required

Project ID

string uuid required
OR
'main' required

Branch ID or "main" for the default branch

Request body

branchNamestring required

Name for the new revert branch

commitIdstring uuid required

ID of the commit to revert to

messagestring required

Commit message for the revert

Response

The newly created revert branch

idstring uuid required

Branch ID

namestring required

Branch name

defaultboolean required

Whether this is the default (main) branch

projectIdstring uuid required

Project ID

baseCommitIdstring uuid nullable required

Base commit ID

createdByIdstring uuid nullable required

ID of user who created the branch

createdAtstring date-time required

Creation timestamp

updatedAtstring date-time required

Last update timestamp