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

# Update provider parameters on the repository associated with a project

> Updates provider-specific parameters on the repository already associated with a project. Repositories associated outside the public API can be missing provider parameters — for example the Azure DevOps tenantId — that are required to use the Repository Migration API; use this endpoint to supply or repair those parameters. For Azure DevOps, supply providerParameters.tenantId. For GitHub, no providerParameters are needed: the GitHub App installation is re-resolved automatically. GitLab, Bitbucket Cloud and Bitbucket Data Center have no updatable repository parameters; re-supply their machine-user credentials via POST /v1/projects/{projectId}/repositories/token instead.



## OpenAPI

````yaml /openapi/public-api-endpoint-reference.yaml patch /v1/projects/{projectId}/repositories
openapi: 3.1.0
info:
  title: Maia Public REST API
  version: '1.0'
servers:
  - description: EU1
    url: https://eu1.api.matillion.com/dpc
  - description: US1
    url: https://us1.api.matillion.com/dpc
security:
  - bearerAuth: []
tags:
  - description: Manage Schedules
    name: Schedules
  - description: Manage Connections
    name: Connections
  - description: Operations for managing Project Variables
    name: Project Variables
  - description: Manage Pipelines
    name: Pipelines
  - description: Review pipelines against quality rules
    name: Pipeline Quality Review
  - description: >-
      Describe how to configure a connection for a given auth provider, auth
      type and platform connection type.
    name: Connection Schema
  - description: Execute tests within a project
    name: Test Execution
  - description: Manage your AI agent tasks
    name: AI Agent Tasks
  - description: SCIM endpoints for user/group permission management
    name: Directory Integration
  - description: Publish shared pipeline artifacts
    name: Shared Pipeline Artifacts
  - description: Manage Repositories
    name: Repositories
  - description: Report on Credit Consumption
    name: Consumption
  - description: >-
      Start and track the migration of a Git repository into a project's working
      tree.
    name: Repository Migration
  - description: Manage Artifacts
    name: Artifacts
  - description: Operations for data lineage and governance
    name: Data Lineage
  - description: Manage Streaming Pipelines
    name: Streaming Pipelines
  - description: Execute a pipeline
    name: Pipeline Execution
  - description: ''
    name: Environments
  - description: ''
    name: Projects
  - description: Manage Agents
    name: Agents
  - description: Operations for managing Environment-level Overrides of Project Variables
    name: Project Variable Environment Overrides
  - description: Query audit events
    name: Audit Events
  - description: Connector Profiles
    name: Connectors
paths:
  /v1/projects/{projectId}/repositories:
    patch:
      tags:
        - Repositories
      summary: Update provider parameters on the repository associated with a project
      description: >-
        Updates provider-specific parameters on the repository already
        associated with a project. Repositories associated outside the public
        API can be missing provider parameters — for example the Azure DevOps
        tenantId — that are required to use the Repository Migration API; use
        this endpoint to supply or repair those parameters. For Azure DevOps,
        supply providerParameters.tenantId. For GitHub, no providerParameters
        are needed: the GitHub App installation is re-resolved automatically.
        GitLab, Bitbucket Cloud and Bitbucket Data Center have no updatable
        repository parameters; re-supply their machine-user credentials via POST
        /v1/projects/{projectId}/repositories/token instead.
      operationId: updateRepository
      parameters:
        - in: path
          name: projectId
          required: true
          schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
      requestBody:
        content:
          application/json:
            examples:
              Azure DevOps Repository:
                description: Azure DevOps Repository
                value:
                  provider: azure-devops
                  providerParameters:
                    tenantId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
              GitHub Repository:
                description: GitHub Repository
                value:
                  provider: github
            schema:
              oneOf:
                - $ref: '#/components/schemas/UpdateAzureDevOpsRepositoryRequest'
                - $ref: '#/components/schemas/UpdateGitHubRepositoryRequest'
        required: true
      responses:
        '200':
          description: Repository provider parameters updated
        '400':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Bad request parameters, or a provider not supported by this endpoint
        '401':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Project not found, or no repository is associated with the project
        '409':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: >-
            The provider in the request does not match the provider of the
            associated repository
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: >-
            The supplied provider parameters failed verification against the Git
            provider
        '500':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unexpected error occurred
components:
  schemas:
    UpdateAzureDevOpsRepositoryRequest:
      allOf:
        - $ref: '#/components/schemas/UpdateRepositoryRequest'
        - type: object
          properties:
            provider:
              type: string
              description: ${repositories.update.provider.desc}
              enum:
                - azure-devops
              example: azure-devops
            providerParameters:
              $ref: '#/components/schemas/AzureDevOpsParameters'
              description: ${repositories.update.providerParameters.desc}
      required:
        - provider
        - providerParameters
    UpdateGitHubRepositoryRequest:
      allOf:
        - $ref: '#/components/schemas/UpdateRepositoryRequest'
        - type: object
          properties:
            provider:
              type: string
              description: ${repositories.update.provider.desc}
              enum:
                - github
              example: github
      required:
        - provider
    ProblemDetail:
      type: object
      properties:
        detail:
          type: string
        instance:
          type: string
        status:
          type: integer
          format: int32
        title:
          type: string
        type:
          type: string
          format: uri
        violations:
          type: array
          items:
            type: string
    UpdateRepositoryRequest:
      discriminator:
        mapping:
          azure-devops:
            $ref: '#/components/schemas/UpdateAzureDevOpsRepositoryRequest'
          github:
            $ref: '#/components/schemas/UpdateGitHubRepositoryRequest'
        propertyName: provider
      properties:
        provider:
          type: string
      required:
        - provider
    AzureDevOpsParameters:
      type: object
      properties:
        tenantId:
          type: string
          description: The Azure AD tenant ID used to authenticate with Azure DevOps
          example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
          minLength: 1
      required:
        - tenantId
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: a valid bearer token
      scheme: bearer
      type: http

````