---
title: "Update Gitea integration"
method: PATCH
path: "/gitea-integration/project/{projectId}"
tags: ["Gitea"]
---

# Update Gitea integration

`PATCH /gitea-integration/project/{projectId}`

Update the Gitea integration. Omitted fields keep their current value.

## Path parameters

- `projectId` string, required

## Request body

- object
  - `isActive` boolean
  - `commentTaskLinkOnGiteaIssue` boolean

## Response `200`

The updated integration

- GiteaIntegration, nullable
  - `id` string, required
  - `projectId` string, required
  - `baseUrl` string, required — Root URL of the Gitea instance.
  - `repositoryOwner` string, required
  - `repositoryName` string, required
  - `maskedAccessToken` string, required
  - `webhookUrl` string — Where Gitea should POST events for this project.
  - `webhookSecret` string — Only returned to callers with workspace:manage_settings, so the value can be pasted into Gitea.
  - `branchPattern` string
  - `commentTaskLinkOnGiteaIssue` boolean — When on, Kaneo comments a link back to the task on the linked Gitea issue.
  - `isActive` boolean, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — The resulting config failed validation
- `401` — Missing or invalid credentials
- `403` — No workspace access, or missing workspace:manage_settings
- `404` — Integration not found

## Changes

- **2026-08-24** `08bbb5bedb5d` — 1 breaking, 4 info
  - the response's body became nullable
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - …1 more
- **2026-07-11** `32cece1ebe43` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/gitea-integration/project/:projectId/patch.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) · [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usekaneo/kaneo-api/revisions/9d1da42c10ce/schema)
