> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a custom toolkit

> Experimental: this endpoint may change. Updates a custom toolkit's name, logo, or API key field text. Omitted fields keep their current value. To change app_url, auth_schemes, or user_id, delete and re-create the toolkit. On a project with 2FA enabled, updating a private toolkit requires the user_id it is private to.



## OpenAPI

````yaml api-reference/openapi.json PATCH /api/v3.1/custom/toolkits/{slug}
openapi: 3.1.0
info:
  version: 3.1.0
  title: Composio Platform API v3.1
  description: >-
    Composio v3.1 API — all endpoints available under /api/v3.1/. Tool endpoints
    default to the latest tool version.
  contact:
    name: Composio Support
    url: https://composio.dev/support
    email: support@composio.dev
  license:
    name: Proprietary
    url: https://composio.dev/terms
servers:
  - url: https://backend.composio.dev
    description: Composio production API
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: Authentication related endpoints
    x-group: Authentication
  - name: Auth Configs
    description: Authentication configuration management
    x-group: Auth Configs
  - name: Connected Accounts
    description: Connected account management
    x-group: Connected Accounts
  - name: Logs
    description: Logging and monitoring
    x-group: Logs
  - name: OpenAPI
    description: OpenAPI specification management
    x-group: OpenAPI
  - name: Organization
    description: Organization management
    x-group: Organization
  - name: API Keys
    description: API key management
    x-group: API Keys
  - name: Webhooks
    description: Webhook configuration
    x-group: Webhooks
  - name: Webhook Endpoints
    description: >-
      Per-OAuth-app webhook ingress endpoints. Inbound URLs the provider posts
      to, plus signing secret storage and verification.
    x-group: Webhook Endpoints
  - name: Webhook Subscriptions
    description: >-
      Webhook delivery subscriptions. Outbound URLs Composio posts trigger
      events to, plus signing secret rotation and event-type filters.
    x-group: Webhook Subscriptions
  - name: Team
    description: Team member management
    x-group: Team
  - name: Consumer Skills
    description: Organization-authored Skill management
    x-group: Consumer Skills
  - name: Toolkits
    description: Toolkit and tool management
    x-group: Toolkits
  - name: Tools
    description: Tool execution endpoints
    x-group: Tools
  - name: Triggers
    description: Trigger management and execution
    x-group: Triggers
  - name: Payments
    description: Payment and subscription management
    x-group: Payments
  - name: Billing
    description: Dashboard billing state — usage, subscription, contract (cookie-auth only)
    x-group: Billing
  - name: Compliance
    description: Organization compliance agreements and acceptance state
    x-group: Compliance
  - name: Files
    description: File management
    x-group: Files
  - name: MCP
    description: MCP server management
    x-group: MCP
  - name: MCP Partner
    description: MCP partner management
    x-group: MCP Partner
  - name: Stripe Projects
    description: Stripe Projects provisioning
    x-group: Stripe Projects
  - name: Tool Router
    description: (Labs) Tool router endpoints
    x-group: Sessions (Prev Tool Router)
  - name: Playground
    description: Dashboard playground chat
    x-group: Playground
  - name: Arena
    description: Arena conversations, messages and terms
    x-group: Arena
  - name: Projects
    description: Projects API endpoints.
    x-group: Projects
  - name: Organization Management
    description: Organization Management API endpoints.
    x-group: Organization Management
  - name: Webhook Events
    description: Events delivered by Composio to your registered webhook endpoints
    x-group: Webhook Events
paths:
  /api/v3.1/custom/toolkits/{slug}:
    patch:
      tags:
        - Toolkits
      summary: Update a custom toolkit
      description: >-
        Experimental: this endpoint may change. Updates a custom toolkit's name,
        logo, or API key field text. Omitted fields keep their current value. To
        change app_url, auth_schemes, or user_id, delete and re-create the
        toolkit. On a project with 2FA enabled, updating a private toolkit
        requires the user_id it is private to.
      operationId: patchCustomToolkitsBySlug
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 37
            pattern: ^[a-zA-Z0-9_]+$
            description: Slug returned when the toolkit was created
            example: CUSTOM_NOTION_K7F2Q
          required: true
          description: Custom toolkit slug
          name: slug
          in: path
      requestBody:
        required: true
        description: >-
          Fields to update. Include at least one of name, logo_file, or
          api_key_field.
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: Display name of the toolkit
                logo_file:
                  type: object
                  properties:
                    content:
                      type: string
                      minLength: 1
                      maxLength: 4000000
                      pattern: ^[A-Za-z0-9+/]+={0,2}$
                      description: Base64-encoded image, max 3MB decoded
                    mime_type:
                      type: string
                      enum:
                        - image/png
                        - image/jpeg
                      description: Image MIME type
                  required:
                    - content
                    - mime_type
                  additionalProperties: false
                  description: >-
                    Square PNG or JPEG logo, 256-1024px, max 3MB. Omit to keep
                    the current logo.
                api_key_field:
                  type: object
                  properties:
                    display_name:
                      type: string
                      minLength: 1
                      maxLength: 100
                      description: Label for the API key input
                    description:
                      type: string
                      minLength: 1
                      maxLength: 500
                      description: Help text below the API key input
                  additionalProperties: false
                  description: >-
                    Label and help text for the API key input on the connect
                    page. API_KEY toolkits only.
                user_id:
                  type: string
                  minLength: 1
                  maxLength: 256
                  description: >-
                    The user the toolkit is private to. Required to update a
                    private toolkit when the project has 2FA enabled; optional
                    for a toolkit shared with all users. Ignored when 2FA is
                    disabled.
              additionalProperties: false
      responses:
        '200':
          description: Successfully updated toolkit
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                    description: The toolkit was updated
                required:
                  - success
        '400':
          description: >-
            Bad request - Invalid parameters, or user_id missing for a private
            toolkit on a project with 2FA enabled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid or missing credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden - Your role cannot update custom toolkits, or user_id
            cannot use this toolkit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found - Toolkit not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '408':
          description: Request timeout
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Conflict - The toolkit cannot be updated right now
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many requests - Retry after a short backoff
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error - Failed to update toolkit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
        - UserApiKeyAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: number
            slug:
              type: string
            status:
              type: number
            request_id:
              type: string
            suggested_fix:
              type: string
            errors:
              type: array
              items:
                type: string
          required:
            - message
            - code
            - slug
            - status
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your Composio project API key. Create or copy it from the Composio
        dashboard.
      x-default: your-project-api-key
    UserApiKeyAuth:
      type: apiKey
      in: header
      name: x-user-api-key
      description: Your Composio user API key for user-scoped endpoints.
      x-default: your-user-api-key

````