> ## 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.

# Update a network (agents, workflows, sdk_ui)

> Replaces whichever of `agents` ([{agentId}]), `workflows` ([{workflowId}]), or `sdk_ui` is provided. Validates that every referenced agent/workflow belongs to the caller's org.



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/copilots/{id}
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/copilots/{id}:
    patch:
      tags:
        - Networks
      summary: Update a network (agents, workflows, sdk_ui)
      description: >-
        Replaces whichever of `agents` ([{agentId}]), `workflows`
        ([{workflowId}]), or `sdk_ui` is provided. Validates that every
        referenced agent/workflow belongs to the caller's org.
      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:
                agents:
                  type: array
                  items:
                    type: object
                    properties:
                      agentId:
                        type: string
                workflows:
                  type: array
                  items:
                    type: object
                    properties:
                      workflowId:
                        type: string
                sdk_ui: {}
                handoff_prompt:
                  type: string
      responses:
        '200':
          description: Updated
        '400':
          description: Invalid body or unknown agent/workflow
        '404':
          description: Not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key generated in studio.sidenet.ai. Scopes the request to its
        organization.

````