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

# Update managed account integration

> Replaces the provider account identifiers a delegated Integration imports. An empty array applies no filter, so every provider account the Access Credential can see is imported. Identifiers are only accepted for providers that support scoping a delegation; Azure CSP is the only one today, where they are Azure subscription ids. Stop delegating an Integration by removing its token from access_credential_tokens on the Managed Account.



## OpenAPI

````yaml https://api.vantage.sh/v2/oas_v3.json put /managed_accounts/{managed_account_token}/integrations/{access_credential_token}
openapi: 3.0.1
info:
  title: Vantage
  description: Vantage API
  termsOfService: https://www.vantage.sh/terms-of-use
  contact:
    name: Vantage Support
    url: https://www.vantage.sh
    email: support@vantage.sh
  version: 2.0.0
servers:
  - url: https://api.vantage.sh/v2
security:
  - oauth2:
      - read
tags:
  - name: AccessGrants
    description: Operations about AccessGrants
  - name: AccessPolicies
    description: Operations about AccessPolicies
  - name: Annotations
    description: Operations about Annotations
  - name: AnomalyAlerts
    description: Operations about AnomalyAlerts
  - name: AnomalyNotifications
    description: Operations about AnomalyNotifications
  - name: AuditLogs
    description: Operations about AuditLogs
  - name: BillingProfiles
    description: Operations about BillingProfiles
  - name: BillingRules
    description: Operations about BillingRules
  - name: BudgetAlerts
    description: Operations about BudgetAlerts
  - name: Budgets
    description: Operations about Budgets
  - name: BusinessMetrics
    description: Operations about BusinessMetrics
  - name: Canvases
    description: Operations about Canvases
  - name: CostAlertEvents
    description: Operations about CostAlertEvents
  - name: CostAlerts
    description: Operations about CostAlerts
  - name: CostProvider
    description: Operations about CostProviders
  - name: CostProviderAccounts
    description: Operations about CostProviderAccounts
  - name: Costs
    description: Operations about Costs
  - name: CostService
    description: Operations about CostServices
  - name: Dashboards
    description: Operations about Dashboards
  - name: DataExports
    description: Operations about DataExports
  - name: ExchangeRates
    description: Operations about ExchangeRates
  - name: FinancialCommitmentReports
    description: Operations about FinancialCommitmentReports
  - name: FinancialCommitments
    description: Operations about FinancialCommitments
  - name: Folders
    description: Operations about Folders
  - name: Integrations
    description: Operations about Integrations
  - name: Invoices
    description: Operations about Invoices
  - name: KubernetesEfficiencyReports
    description: Operations about KubernetesEfficiencyReports
  - name: ManagedAccounts
    description: Operations about ManagedAccounts
  - name: Me
    description: Operations about Mes
  - name: NetworkFlowLogs
    description: Operations about NetworkFlowLogs
  - name: NetworkFlowReports
    description: Operations about NetworkFlowReports
  - name: OpenAPISpecification
    description: Operations about OpenAPISpecifications
  - name: Ping
    description: Operations about Pings
  - name: Prices
    description: Operations about Prices
  - name: Recommendations
    description: Operations about Recommendations
  - name: RecommendationViews
    description: Operations about RecommendationViews
  - name: ReportForecasts
    description: Operations about ReportForecasts
  - name: ReportNotifications
    description: Operations about ReportNotifications
  - name: ResourceReports
    description: Operations about ResourceReports
  - name: Resources
    description: Operations about Resources
  - name: SavedFilters
    description: Operations about SavedFilters
  - name: ScenarioModels
    description: Operations about ScenarioModels
  - name: Segments
    description: Operations about Segments
  - name: Tags
    description: Operations about Tags
  - name: Teams
    description: Operations about Teams
  - name: UnitCosts
    description: Operations about UnitCosts
  - name: UserFeedback
    description: Operations about UserFeedbacks
  - name: Users
    description: Operations about Users
  - name: VirtualTags
    description: Operations about VirtualTags
  - name: Workspaces
    description: Operations about Workspaces
paths:
  /managed_accounts/{managed_account_token}/integrations/{access_credential_token}:
    put:
      tags:
        - ManagedAccounts
      summary: Update managed account integration
      description: >-
        Replaces the provider account identifiers a delegated Integration
        imports. An empty array applies no filter, so every provider account the
        Access Credential can see is imported. Identifiers are only accepted for
        providers that support scoping a delegation; Azure CSP is the only one
        today, where they are Azure subscription ids. Stop delegating an
        Integration by removing its token from access_credential_tokens on the
        Managed Account.
      operationId: updateManagedAccountIntegration
      parameters:
        - name: managed_account_token
          in: path
          required: true
          schema:
            type: string
        - name: access_credential_token
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateManagedAccountIntegration'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedAccountIntegration'
              example:
                access_credential_token: accss_crdntl_64f3820a9d3eacf1
                provider: azure_csp
                provider_account_identifiers:
                  - 3fa85f64-5717-4562-b3fc-2c963f66afa6
                  - 8c1f7a0e-1f2b-4c2b-9f3d-5a6b7c8d9e01
        '400':
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '404':
          description: NotFound
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
      security:
        - oauth2:
            - write
components:
  schemas:
    updateManagedAccountIntegration:
      required:
        - provider_account_identifiers
      type: object
      properties:
        provider_account_identifiers:
          type: array
          description: >-
            The provider account identifiers this delegated Integration should
            import, replacing the current list. For Azure CSP these are Azure
            subscription ids. An empty array applies no filter.
          items:
            type: string
      description: Update a delegated Integration on a Managed Account.
    ManagedAccountIntegration:
      required:
        - access_credential_token
        - provider
        - provider_account_identifiers
      type: object
      properties:
        access_credential_token:
          type: string
          description: >-
            The token of the parent Access Credential that is delegated to this
            Managed Account.
          nullable: false
          example: accss_crdntl_3971e6f022b4e39b
        provider:
          type: string
          description: The key of the Provider for the delegated Integration.
          nullable: false
          example: azure_csp
        provider_account_identifiers:
          type: array
          description: >-
            The provider account identifiers this delegated Integration imports.
            For Azure CSP these are Azure subscription ids. An empty array means
            no filter is applied, so every provider account the credential can
            see is imported. Providers that do not support scoping always report
            an empty array.
          nullable: false
          items:
            type: string
      description: ManagedAccountIntegration model
    Errors:
      required:
        - errors
      type: object
      properties:
        links:
          $ref: '#/components/schemas/Links'
        errors:
          type: array
          nullable: false
          items:
            type: string
      description: Errors model
    Links:
      type: object
      properties:
        self:
          type: string
          description: The URL of the current page of results.
          nullable: true
        first:
          type: string
          description: The URL of the first page of results.
          nullable: true
        next:
          type: string
          description: The URL of the next page of results, if one exists.
          nullable: true
        last:
          type: string
          description: The URL of the last page of results, if one exists.
          nullable: true
        prev:
          type: string
          description: The URL of the previous page of results, if one exists.
          nullable: true
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://console.vantage.sh/account/profile
          scopes:
            read: Grants read access
            write: Grants write access

````