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

# Set tool dependencies

> Replace all dependencies for a specific tool



## OpenAPI

````yaml /swagger/nightly/ai-studio-swagger.yml put /tools/{id}/dependencies
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /tools/{id}/dependencies:
    put:
      tags:
        - tools
      summary: Set tool dependencies
      description: Replace all dependencies for a specific tool
      parameters:
        - name: id
          in: path
          description: Tool ID
          required: true
          schema:
            type: integer
      requestBody:
        description: Array of dependency IDs
        content:
          application/json:
            schema:
              type: array
              items:
                type: integer
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ToolResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api.ToolResponse:
      type: object
      properties:
        attributes:
          type: object
          properties:
            active:
              type: boolean
            auth_key:
              type: string
            auth_schema_name:
              type: string
            dependencies:
              type: array
              items:
                $ref: '#/components/schemas/api.ToolResponse'
            description:
              type: string
            file_stores:
              type: array
              items:
                $ref: '#/components/schemas/api.FileStoreResponse'
            filters:
              type: array
              items:
                $ref: '#/components/schemas/api.FilterResponse'
            name:
              type: string
            namespace:
              type: string
            oas_spec:
              type: string
            operations:
              type: array
              items:
                type: string
            privacy_score:
              type: integer
            tool_type:
              type: string
        id:
          type: string
        type:
          type: string
      description: Tool response model
    api.ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              title:
                type: string
      description: Error response model
    api.FileStoreResponse:
      type: object
      properties:
        attributes:
          type: object
          properties:
            description:
              type: string
            file_name:
              type: string
            last_processed_on:
              type: string
            length:
              type: integer
        id:
          type: string
        type:
          type: string
      description: FileStore response model
    api.FilterResponse:
      type: object
      properties:
        attributes:
          type: object
          properties:
            description:
              type: string
            name:
              type: string
            namespace:
              type: string
            response_filter:
              type: boolean
            script:
              type: array
              items:
                type: integer
        id:
          type: string
        type:
          type: string
      description: Filter response model
  securitySchemes:
    BearerAuth:
      type: apiKey
      name: Authorization
      in: header

````