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

# Duplicate Widgets

> Copy widget rows by id, including persisted series data, into new rows with caller-provided new ids.



## OpenAPI

````yaml https://api.oviond.com/openapi.json post /v1/widgets/duplicate
openapi: 3.1.0
info:
  title: Oviond Backend API
  version: 1.0.0
  description: Authentication, account management, billing, and media services for Oviond.
  x-logo:
    url: https://app.oviond.com/img/oviond-full-logo.svg
    altText: Oviond
servers:
  - url: https://api.oviond.com
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/widgets/duplicate:
    post:
      tags:
        - Widgets
      summary: Duplicate Widgets
      description: >-
        Copy widget rows by id, including persisted series data, into new rows
        with caller-provided new ids.
      operationId: duplicate_widgets
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DuplicateWidgetsRequest'
      responses:
        '201':
          description: Widgets duplicated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DuplicateWidgetsResponse'
        '404':
          description: One or more sources not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
components:
  schemas:
    DuplicateWidgetsRequest:
      type: object
      properties:
        pairs:
          type: array
          items:
            type: object
            properties:
              source_id:
                type: string
              new_id:
                type: string
              y_offset:
                type: number
            required:
              - source_id
              - new_id
          minItems: 1
      required:
        - pairs
    DuplicateWidgetsResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          type: object
          properties:
            duplicated_count:
              type: number
            widget_ids:
              type: array
              items:
                type: string
          required:
            - duplicated_count
            - widget_ids
      required:
        - success
        - data
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Oviond API key (prefix `oviond_`) sent as a Bearer token — the
        credential for REST/programmatic and headless integrations. Manage keys
        in Settings → API Keys. API keys do NOT authenticate the MCP endpoint
        (/mcp), which uses OAuth 2.1 + PKCE.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Supabase-issued JWT used by the Oviond web app session. External API
        consumers should authenticate with an Oviond API key (ApiKeyAuth)
        instead.

````