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

# Migrate Document To New Doc Plugin

> Migrates the document with the provided id to the specified document-plugin.

NsApiSlow threshold: 5000 ms.
<para />## Online Restricted: ## The DocumentMigration agent is not available in Online by default. Access must be requested specifically when app is registered. Intended for SuperOffice-internal apps.



## OpenAPI

````yaml /openapi/agent/openapi-v3-DocumentMigrationAgent.json post /api/v1/Agents/DocumentMigration/MigrateDocumentToNewDocPlugin
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - DocumentMigrationAgent
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Agents/DocumentMigration/MigrateDocumentToNewDocPlugin:
    post:
      tags:
        - DocumentMigration_Agent
      summary: Migrate Document To New Doc Plugin
      description: "Migrates the document with the provided id to the specified document-plugin.\n\nNsApiSlow threshold: 5000 ms.\r\n<para />## Online Restricted: ## The DocumentMigration agent is not available in Online by default. Access must be requested specifically when app is registered. Intended for SuperOffice-internal apps."
      operationId: v1DocumentMigrationAgent_MigrateDocumentToNewDocPlugin
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest
          application/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest
          text/xml:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest
          application/merge-patch+json:
            schema:
              $ref: >-
                #/components/schemas/SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest
        description: DocumentId, DocumentPluginId
        required: true
      responses:
        '204':
          description: No Content
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.WebApi.v1.Carriers.DocumentMigrationCarriers.MigrateDocumentToNewDocPluginRequest:
      description: >-
        MigrateDocumentToNewDocPlugin: Migrates the document with the provided
        id to the specified document-plugin.
      type: object
      properties:
        DocumentId:
          format: int32
          type: integer
        DocumentPluginId:
          format: int32
          type: integer

````

## Related topics

- [SuperOffice.WebApi.Data.DocumentMigration MigrateDocumentToNewDocPluginRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.DocumentMigration_MigrateDocumentToNewDocPluginRequest.md)
- [SuperOffice.WebApi.Agents.DocumentMigrationAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.DocumentMigrationAgent.md)
- [SuperOffice.WebApi.Agents.IDocumentMigrationAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IDocumentMigrationAgent.md)
- [Migrate Template To New Doc Plugin](/en/api/reference/restful/agent/documentmigration_agent/migrate-template-to-new-doc-plugin.md)
- [SuperOffice.WebApi.Data.DocumentMigration MigrateTemplateToNewDocPluginRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.DocumentMigration_MigrateTemplateToNewDocPluginRequest.md)
- [Has Documents To Migrate](/en/api/reference/restful/agent/documentmigration_agent/has-documents-to-migrate.md)
