GitButler Logo
API Reference

Patch Stack

Operations about patch_stacks

PATCH
/patch_stack/{uuid}

Patch Patch Stack Uuid

Update patch stack

/patch_stack/{uuid}

Request Body

application/jsonOptional

statusstring

Status of patch stack

Value in: "active" | "closed"

titlestring

Patch stack title

descriptionstring

Patch stack description

Path Parameters

uuid
Required
string

Patch Stack UUID

curl -X PATCH "https://app.gitbutler.com/api/patch_stack/string" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "active",
    "title": "string",
    "description": "string"
  }'

Update patch stack

GET
/patch_stack/{project_id}/{branch_id}/patch_status

Get Patch Stack Project Id Branch Id Patch Status

Return patch statuses for a user

/patch_stack/{project_id}/{branch_id}/patch_status

Path Parameters

project_id
Required
string

Repository ID

branch_id
Required
string

Branch ID

curl -X GET "https://app.gitbutler.com/api/patch_stack/string/string/patch_status"

Return patch statuses for a user

{
  "branch_id": "string",
  "oplog_sha": "string",
  "uuid": "string",
  "title": "string",
  "description": "string",
  "status": "string",
  "version": "string",
  "created_at": "string",
  "stack_size": "string",
  "contributors": "string",
  "patches": "string"
}

GET
/patch_stack/{project_id}/{branch_id}

Get Patch Stack Project Id Branch Id

Return latest patch stack for a branch

/patch_stack/{project_id}/{branch_id}

Path Parameters

project_id
Required
string

Repository ID

branch_id
Required
string

Branch ID

curl -X GET "https://app.gitbutler.com/api/patch_stack/string/string"

Return latest patch stack for a branch

{
  "branch_id": "string",
  "oplog_sha": "string",
  "uuid": "string",
  "title": "string",
  "description": "string",
  "status": "string",
  "version": "string",
  "created_at": "string",
  "stack_size": "string",
  "contributors": "string",
  "patches": "string"
}

GET
/patch_stack/{project_id}

Get Patch Stack Project Id

Return list of patch stacks

/patch_stack/{project_id}

Path Parameters

project_id
Required
string

Repository ID

Query Parameters

branch_idstring

Branch ID filter

statusstring

Status of patch stack

Default: "active"Value in: "active" | "inactive" | "closed" | "loading" | "all"
curl -X GET "https://app.gitbutler.com/api/patch_stack/string?branch_id=string&status=active"

Return list of patch stacks

{
  "branch_id": "string",
  "oplog_sha": "string",
  "uuid": "string",
  "title": "string",
  "description": "string",
  "status": "string",
  "version": "string",
  "created_at": "string",
  "stack_size": "string",
  "contributors": "string",
  "patches": "string"
}

POST
/patch_stack

Post Patch Stack

Create new patch stack

/patch_stack

Request Body

application/jsonRequired

project_id
Required
string

Repository ID

branch_id
Required
string

Branch ID

oplog_sha
Required
string

Timeline Event ID to create version from

curl -X POST "https://app.gitbutler.com/api/patch_stack" \
  -H "Content-Type: application/json" \
  -d '{
    "project_id": "string",
    "branch_id": "string",
    "oplog_sha": "string"
  }'

Create new patch stack

{
  "branch_id": "string",
  "oplog_sha": "string",
  "uuid": "string",
  "title": "string",
  "description": "string",
  "status": "string",
  "version": "string",
  "created_at": "string",
  "stack_size": "string",
  "contributors": "string",
  "patches": "string"
}