> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Gitea integration

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



## OpenAPI

````yaml /openapi.json patch /gitea-integration/project/{projectId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /gitea-integration/project/{projectId}:
    patch:
      tags:
        - Gitea
      summary: Update Gitea integration
      description: Update the Gitea integration. Omitted fields keep their current value.
      operationId: updateGiteaIntegration
      parameters:
        - schema:
            type: string
          required: true
          name: projectId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                isActive:
                  type: boolean
                commentTaskLinkOnGiteaIssue:
                  type: boolean
      responses:
        '200':
          description: The updated integration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GiteaIntegration'
        '400':
          description: The resulting config failed validation
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing workspace:manage_settings
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: Integration not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GiteaIntegrationNotFound'
components:
  schemas:
    GiteaIntegration:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
        projectId:
          type: string
        baseUrl:
          type: string
          description: Root URL of the Gitea instance.
        repositoryOwner:
          type: string
        repositoryName:
          type: string
        maskedAccessToken:
          type: string
        webhookUrl:
          type: string
          description: Where Gitea should POST events for this project.
        webhookSecret:
          type: string
          description: >-
            Only returned to callers with workspace:manage_settings, so the
            value can be pasted into Gitea.
        branchPattern:
          type: string
        commentTaskLinkOnGiteaIssue:
          type: boolean
          description: >-
            When on, Kaneo comments a link back to the task on the linked Gitea
            issue.
        isActive:
          type:
            - boolean
            - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - projectId
        - baseUrl
        - repositoryOwner
        - repositoryName
        - maskedAccessToken
        - isActive
        - createdAt
        - updatedAt
    GiteaIntegrationNotFound:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````