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

# Save many of a provider's tools in one request

> Creates and updates a provider's tools in a single call. An entry with an `id` updates that tool, an entry without one creates it (nothing is deleted — use DELETE /v1/tools/:id). Names are made unique across the whole provider, so the saved name may differ from the one sent; the response lists every saved row so the client can reconcile. Exists because saving a provider one PATCH per tool reloaded the org tool registry and rebuilt dependent agents once per tool — here that happens ONCE, after every row is written. A row that fails is reported in `errors` and does not abort the rest.



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/tool-providers/{id}/tools
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/tool-providers/{id}/tools:
    patch:
      tags:
        - V1
        - Tool Providers
      summary: Save many of a provider's tools in one request
      description: >-
        Creates and updates a provider's tools in a single call. An entry with
        an `id` updates that tool, an entry without one creates it (nothing is
        deleted — use DELETE /v1/tools/:id). Names are made unique across the
        whole provider, so the saved name may differ from the one sent; the
        response lists every saved row so the client can reconcile. Exists
        because saving a provider one PATCH per tool reloaded the org tool
        registry and rebuilt dependent agents once per tool — here that happens
        ONCE, after every row is written. A row that fails is reported in
        `errors` and does not abort the rest.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: X-Organization-Id
          in: header
          required: false
          schema:
            type: string
          description: Organization to scope the request to.
        - name: X-User-Id
          in: header
          required: false
          schema:
            type: string
          description: >-
            End-user identity for the request. Required by endpoints that read
            or write user-scoped resources (threads, messages, memory). A
            `userId` query param (or body field, where documented) is accepted
            as a fallback.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tools:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      name:
                        type: string
                        minLength: 1
                      description:
                        type: string
                        nullable: true
                      method:
                        type: string
                        enum:
                          - GET
                          - POST
                          - PUT
                          - PATCH
                          - DELETE
                      path:
                        type: string
                        minLength: 1
                      input_schema:
                        type: object
                        additionalProperties: {}
                        nullable: true
                      output_schema:
                        type: object
                        additionalProperties: {}
                        nullable: true
                      timeout_ms:
                        type: integer
                        minimum: 1000
                        maximum: 120000
                      is_enabled:
                        type: boolean
                      operation_id:
                        type: string
                      tags:
                        type: array
                        items:
                          type: string
                        nullable: true
                      deprecated:
                        type: boolean
                    additionalProperties: false
                  minItems: 1
                  maxItems: 2000
              required:
                - tools
              additionalProperties: false
      responses:
        '200':
          description: Saved (check `errors` for rows that did not apply)
        '400':
          description: Bad request
        '404':
          description: Provider not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated in studio.sidenet.ai. Scopes the request to its
        organization.

````