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

# Update an integration

> Update integration settings such as the default repository, Slack channel restrictions, automatic solving, or Sentry environments; replace AWS or PostgreSQL configuration; rotate GitLab service account access tokens; set or remove Atlassian service-account credentials.



## OpenAPI

````yaml https://api.tembo.io/public-api/openapi/public patch /v1/integrations/{integrationId}
openapi: 3.1.0
info:
  title: Tembo Public API
  description: >-
    Manage agents, sessions, repositories, and organization resources with the
    Tembo API.
  version: 1.0.0
servers:
  - url: https://api.tembo.io
    description: Tembo API
  - url: https://{deployment-origin}/api/public-api
    description: Self-hosted Tembo
    variables:
      deployment-origin:
        default: tembo.example.com
        description: Hostname of your self-hosted Tembo deployment
security: []
paths:
  /v1/integrations/{integrationId}:
    patch:
      tags:
        - Integrations
      summary: Update an integration
      description: >-
        Update integration settings such as the default repository, Slack
        channel restrictions, automatic solving, or Sentry environments; replace
        AWS or PostgreSQL configuration; rotate GitLab service account access
        tokens; set or remove Atlassian service-account credentials.
      operationId: updateIntegration
      parameters:
        - in: path
          name: integrationId
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - type: object
                  properties:
                    settings:
                      type: object
                      properties:
                        defaultRepositoryId:
                          anyOf:
                            - type: string
                              format: uuid
                              pattern: >-
                                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                            - type: 'null'
                        disallowedSlackChannelIds:
                          maxItems: 1000
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 255
                        instantSolve:
                          type: boolean
                        sentryEnvironments:
                          maxItems: 1000
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 255
                      additionalProperties: false
                      minProperties: 1
                      description: >-
                        Update integration settings, preserving unspecified
                        settings.
                  required:
                    - settings
                  additionalProperties: false
                - type: object
                  properties:
                    aws:
                      type: object
                      properties:
                        environment:
                          type: string
                          minLength: 1
                          maxLength: 200
                          description: Display label for the AWS environment.
                        roleArn:
                          type: string
                          minLength: 1
                          maxLength: 2048
                          description: AWS IAM role ARN to assume for account access.
                      required:
                        - environment
                        - roleArn
                      additionalProperties: false
                      description: Replace AWS environment and assumed-role configuration.
                  required:
                    - aws
                  additionalProperties: false
                - type: object
                  properties:
                    postgres:
                      type: object
                      properties:
                        caCertificate:
                          description: >-
                            Optional CA certificate for the PostgreSQL TLS
                            connection.
                          type: string
                          maxLength: 1000000
                        connectionString:
                          type: string
                          minLength: 1
                          maxLength: 16384
                          description: >-
                            PostgreSQL connection URI, including credentials.
                            Stored as secret configuration.
                        instanceName:
                          type: string
                          minLength: 1
                          maxLength: 200
                          description: Display name for the PostgreSQL instance.
                      required:
                        - connectionString
                        - instanceName
                      additionalProperties: false
                      description: Replace PostgreSQL connection configuration.
                  required:
                    - postgres
                  additionalProperties: false
                - type: object
                  properties:
                    gitlab:
                      type: object
                      properties:
                        accessToken:
                          type: string
                          minLength: 1
                          maxLength: 65536
                          description: GitLab access token used to connect the integration.
                      required:
                        - accessToken
                      additionalProperties: false
                      description: >-
                        Replace GitLab credentials with a service account access
                        token, keeping repositories and projects connected.
                  required:
                    - gitlab
                  additionalProperties: false
                - type: object
                  properties:
                    atlassianServiceAccount:
                      anyOf:
                        - type: object
                          properties:
                            clientId:
                              type: string
                              minLength: 1
                              maxLength: 4096
                            clientSecret:
                              type: string
                              minLength: 1
                              maxLength: 65536
                          required:
                            - clientId
                            - clientSecret
                          additionalProperties: false
                        - type: 'null'
                      description: >-
                        Set Atlassian service-account OAuth credentials for
                        triggers, or null to remove them.
                  required:
                    - atlassianServiceAccount
                  additionalProperties: false
      responses:
        '200':
          description: Update an integration
          content:
            application/json:
              schema:
                type: object
                properties:
                  createdAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                  displayName:
                    type: string
                  enabledAt:
                    anyOf:
                      - type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                      - type: 'null'
                  id:
                    type: string
                  lastSyncedAt:
                    anyOf:
                      - type: string
                        format: date-time
                        pattern: >-
                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                      - type: 'null'
                  repositoryCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  sourceCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  type:
                    type: string
                    minLength: 1
                    maxLength: 100
                  updatedAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
                required:
                  - createdAt
                  - displayName
                  - enabledAt
                  - id
                  - lastSyncedAt
                  - repositoryCount
                  - sourceCount
                  - type
                  - updatedAt
                additionalProperties: false
        '400':
          description: Invalid request or missing organization information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '401':
          description: Provider authentication failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '403':
          description: The caller cannot perform this operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '404':
          description: Integration, trigger, or filter field not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '409':
          description: Integration conflict or unsupported operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '500':
          description: Integration operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '502':
          description: Integration provider operation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '503':
          description: Requested integration capability is not configured
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
        '504':
          description: Integration provider operation timed out
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
                additionalProperties: false
      security:
        - apiKey: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: >
            import Tembo from '@tembo-io/sdk';


            const client = new Tembo();


            const integration = await
            client.integrations.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
              settings: {},
            });
        - lang: rust
          label: Rust SDK
          source: |
            use tembo_rs::*;

            let client = Tembo::from_env()?;

            let response = client
                .integrations()
                .update(
                    "7c9e6679-7425-40de-944b-e07fc1f90ae7",
                    IntegrationsUpdateBody::IntegrationsUpdateBodyVariant1(IntegrationsUpdateBodyVariant1::new(
                        IntegrationsUpdateBodyVariant1Settings::new(),
                    )),
                )
                .send()
                .await?;
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.