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

> ## Agent Instructions
> Treat Stackdome as an application-delivery platform for coding agents and developers, not as a Kubernetes dashboard.
> Prefer the Stackdome agent plugin as the user entry point and the stackdome CLI as the execution interface.
> Route agents who need the maintained deploy skill to npx skills add stackdome/skills and the complete operational workflow to /guides/ai-agents.
> Verify commands and flags with stackdome --help. Run stackdome init before authoring stackfile.yaml and stackdome validate before deploying.
> Use -o json for automation and verify documented terminal states before claiming success.
> Never request a user's account password. Use API-token authentication.
> During alpha, Stackdome Cloud is ephemeral and capacity-limited, and each organization can connect one cluster.
> Do not expose Kubernetes as a user concern unless the task is self-hosting or infrastructure architecture.

# Update a git integration (credential rotation)



## OpenAPI

````yaml /openapi.yaml put /api/v1/organizations/{org_id}/git-integrations/{id}
openapi: 3.0.0
info:
  description: >-
    Deploy, debug, and operate applications through the Stackdome REST API on
    Stackdome Cloud or a self-hosted installation. This API is in alpha and may
    change before general availability.
  title: Stackdome API
  version: 0.0.1-alpha
servers:
  - url: /
security: []
paths:
  /api/v1/organizations/{org_id}/git-integrations/{id}:
    put:
      summary: Update a git integration (credential rotation)
      parameters:
        - description: The ID of the organization
          explode: false
          in: path
          name: org_id
          required: true
          schema:
            type: string
          style: simple
        - description: The id of record
          explode: false
          in: path
          name: id
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GitIntegration'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GitIntegration'
          description: Git integration updated successfully
        '400':
          description: Invalid request payload
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Git integration not found
        '500':
          description: Internal server error
      security:
        - Bearer: []
components:
  schemas:
    GitIntegration:
      additionalProperties: false
      example:
        organisation_id: organisation_id
        install_url: install_url
        updated_at: '2000-01-23T04:56:07.000Z'
        auth:
          basic:
            password: password
            username: username
          token: token
        host: host
        credentials_configured: true
        created_at: '2000-01-23T04:56:07.000Z'
        id: id
        type: null
        status: active
      properties:
        id:
          readOnly: true
          type: string
        type:
          $ref: '#/components/schemas/GitIntegrationType'
        host:
          description: Git host this integration covers, e.g. gitlab.example.com
          type: string
        status:
          enum:
            - active
            - pending_install
            - installed
          readOnly: true
          type: string
        auth:
          $ref: '#/components/schemas/GitIntegrationAuth'
        credentials_configured:
          readOnly: true
          type: boolean
        install_url:
          description: >-
            GitHub install page for adding the app to more accounts (github_app
            only)
          readOnly: true
          type: string
        organisation_id:
          readOnly: true
          type: string
        created_at:
          format: date-time
          readOnly: true
          type: string
        updated_at:
          format: date-time
          readOnly: true
          type: string
      required:
        - host
      type: object
    GitIntegrationType:
      default: git_credentials
      enum:
        - git_credentials
        - github_app
      type: string
      x-enum-varnames:
        - GIT_INTEGRATION_TYPE_CREDENTIALS
        - GIT_INTEGRATION_TYPE_GITHUB_APP
    GitIntegrationAuth:
      additionalProperties: false
      description: >-
        Clone auth material; exactly one of token or basic. Never echoed in
        responses.
      example:
        basic:
          password: password
          username: username
        token: token
      properties:
        token:
          format: password
          type: string
          writeOnly: true
        basic:
          $ref: '#/components/schemas/GitIntegrationBasicAuth'
      type: object
    GitIntegrationBasicAuth:
      additionalProperties: false
      example:
        password: password
        username: username
      properties:
        username:
          type: string
          writeOnly: true
        password:
          format: password
          type: string
          writeOnly: true
      required:
        - password
        - username
      type: object
  securitySchemes:
    Bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````