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

# Update integration data

> Shallow-merges appData into an existing Vader integration configuration and returns the stored result. Use POST on this same path when the integration may not have been configured yet.




## OpenAPI

````yaml put /api/v2/integration/{integrationSlug}/{integrationVersion}
openapi: 3.0.0
info:
  version: 2.0.0
  title: Vida API
  description: Vida API Documentation
servers:
  - url: https://api.vida.dev
    description: Vida Production
    variables:
      baseUrl:
        default: api.vida.dev
        description: Production API Root
security: []
tags:
  - name: Agents
  - name: Apps
    description: Install Vida apps and use their enabled integration functions.
  - name: Integrations
    description: Configure Vader integrations.
  - name: Inbound Email
    description: Control which senders may create inbound email work for an Agent.
  - name: Features
    description: Inspect capabilities available within an account hierarchy.
  - name: Conversation Logs
    description: Query conversation activity and calculate account-level metrics.
  - name: Computer Agents
    description: Set up, configure, inspect, and manage Vida Computer Agents.
  - name: Computer Agent Sessions
    description: View and reset Computer Agent sessions.
  - name: Accounts
  - name: Agent Templates
    description: Create, manage, and apply reusable Agent configurations.
paths:
  /api/v2/integration/{integrationSlug}/{integrationVersion}:
    put:
      tags:
        - Integrations
      summary: Update integration data
      description: >
        Shallow-merges appData into an existing Vader integration configuration
        and returns the stored result. Use POST on this same path when the
        integration may not have been configured yet.
      operationId: appsPutIntegration
      parameters:
        - name: integrationSlug
          in: path
          required: true
          description: Slug identifier for the Vader integration.
          schema:
            type: string
            minLength: 1
        - name: integrationVersion
          in: path
          required: true
          description: Integration version. Defaults to v1.
          schema:
            type: string
            minLength: 1
        - name: targetAccountId
          in: query
          required: false
          description: >-
            Computer Agent account whose app state should be used. Defaults to
            the API token account.
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - appData
              properties:
                appData:
                  type: object
                  additionalProperties: true
                  description: >-
                    Integration-specific settings to merge into the existing
                    configuration.
      responses:
        '200':
          description: Integration data updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Integration data updated successfully
                  appId:
                    type: string
                    example: squire
                  appVersion:
                    type: string
                    example: v1
                  appData:
                    type: object
                    additionalProperties: true
                required:
                  - message
                  - appId
                  - appVersion
                  - appData
        '400':
          description: The integration slug or appData is invalid
        '401':
          description: The Vida API token is missing or invalid
        '404':
          description: Existing integration data was not found
        '500':
          description: Integration data could not be updated
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: query
      name: token
      description: Vida API Token

````