GitButler Logo

Projects

GET
/projects/{repo_id}

Get Projects Repo Id

Return one project

Path Parameters

repo_id
Required
string

Repository ID

Status codeDescription
200Return one project
/projects/{repo_id}

curl -X GET "https://app.gitbutler.com/api/projects/string"
DELETE
/projects/{repo_id}

Delete Projects Repo Id

Delete a project

Path Parameters

repo_id
Required
string

Repository ID

Status codeDescription
204Delete a project
/projects/{repo_id}

curl -X DELETE "https://app.gitbutler.com/api/projects/string"
PUT
/projects/{repo_id}

Put Projects Repo Id

Update a project

Request Body (Optional)

namestring

Project name

descriptionstring

Project description

Path Parameters

repo_id
Required
integer

Format: "int32"
Status codeDescription
200Update a project
/projects/{repo_id}

curl -X PUT "https://app.gitbutler.com/api/projects/0" \
  -d '{
  "name": "string",
  "description": "string"
}'
GET
/projects

Get Projects

Return all projects

Status codeDescription
200Return all projects
/projects
curl -X GET "https://app.gitbutler.com/api/projects"

Butler_API_Entities_Project model

{
  "name": "string",
  "description": "string",
  "repository_id": "string",
  "code_repository_id": "string",
  "created_at": "string",
  "updated_at": "string"
}

POST
/projects

Post Projects

Create a project

Request Body

name
Required
string

Project name

descriptionstring

Project description

directorystring

Project directory name

Status codeDescription
201Create a project
/projects

curl -X POST "https://app.gitbutler.com/api/projects" \
  -d '{
  "name": "string",
  "description": "string",
  "directory": "string"
}'