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

# Merge updates from canonical

> Apply selected endpoint updates from the canonical version into your API. New endpoints also merge code; spec-only updates preserve your code.



## OpenAPI

````yaml /openapi.json post /dispatch/tasks/{task_id}/merge-updates
openapi: 3.1.0
info:
  title: Parse API
  description: Programmatic API for creating, managing, and executing web scraping APIs.
  version: 2.0.0
servers:
  - url: https://api.parse.bot
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Execute
    description: Call the endpoints of an API you've built — the most common operation
  - name: Marketplace
    description: >-
      Browse and search the public marketplace of pre-built APIs (no auth
      required)
  - name: Dispatch
    description: Create and manage scraping APIs
  - name: Export
    description: Export API specs in standard formats
  - name: Updates
    description: Check and merge upstream improvements to your APIs
paths:
  /dispatch/tasks/{task_id}/merge-updates:
    post:
      tags:
        - Dispatch
      summary: Merge updates from canonical
      description: >-
        Apply selected endpoint updates from the canonical version into your
        API. New endpoints also merge code; spec-only updates preserve your
        code.
      operationId: merge_updates
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MergeUpdatesRequest'
      responses:
        '200':
          description: Merge result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MergeUpdatesResponse'
components:
  schemas:
    MergeUpdatesRequest:
      type: object
      required:
        - endpoints
      properties:
        endpoints:
          type: array
          items:
            type: string
          description: Endpoint names to merge from canonical
    MergeUpdatesResponse:
      type: object
      properties:
        merged:
          type: integer
          description: Number of endpoints merged
        endpoints:
          type: array
          items:
            type: string
          description: Endpoint names that were merged
        code_merged:
          type: boolean
          description: >-
            Whether scraper code was also updated (true when new endpoints are
            merged)
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for programmatic access. Create one in the Parse dashboard at
        https://parse.bot (Settings → API Keys). Keys start with 'pmx_'.

````