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

# Resume data type migration

> Restart a data type migration (started by **Move v3 data type to v4**, **Copy v3 data type to v4**, or by making a field unique) that stopped reporting progress. It continues from the last record it finished.
Allowed only when the migration is still `running` and has not reported progress for at least 5 minutes; otherwise it returns `409`.
Permission: `edit/dataType`.
Available on `/api/v4` only.



## OpenAPI

````yaml /openapi/public/openapi-data.json post /data-type/{dataTypeId}/migration/resume
openapi: 3.0.0
info:
  title: API - Data
  version: 3.0.0
  description: API Documentation - RESTful API for field operations management.
servers:
  - url: https://apiweb.mile.app/api/v3
security:
  - bearerAuth: []
tags:
  - name: Data Source
    description: >-
      The Data source could help you simplify the process of filling in task
      information based on existing data in the app. This data could consist of
      information such as name, number, date, coordinate, and multiple options.
      The Data typically represents entities such as customers, products,
      employees, suppliers, or any other critical data elements that are used
      across the application.


      **To see the details of data source object, please follow [this
      link](#tag/data_source_model)**
  - name: Data Type
    description: >-
      The Data type is the structure of data fields that is customizable to suit
      your business needs. Data type attributes consist of IDs, name, field
      details, type, and primary key. This data type structure will be used at
      Data Source and Flow.


      **To see the details of data type object, please follow [this
      link](#tag/data_type_model)**
paths:
  /data-type/{dataTypeId}/migration/resume:
    servers:
      - url: https://apiweb.mile.app/api/v4
    post:
      tags:
        - Data Type
      summary: Resume data type migration
      description: >-
        Restart a data type migration (started by **Move v3 data type to v4**,
        **Copy v3 data type to v4**, or by making a field unique) that stopped
        reporting progress. It continues from the last record it finished.

        Allowed only when the migration is still `running` and has not reported
        progress for at least 5 minutes; otherwise it returns `409`.

        Permission: `edit/dataType`.

        Available on `/api/v4` only.
      operationId: resumeDataTypeMigration
      parameters:
        - name: dataTypeId
          in: path
          required: true
          description: |-
            Unique identifier of the data type, generated by the system.
            **Example**: `640a45dd089dc95a0a09ef14`
          schema:
            type: string
      responses:
        '202':
          description: Accepted, migration re-queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  message:
                    type: string
                example:
                  status: true
                  message: Success
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Shows if the request was successful.
                  message:
                    type: string
                    description: A short message explaining what went wrong.
                example:
                  status: false
                  message: Data not found
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  message:
                    type: string
                example:
                  status: false
                  message: Migration cannot be resumed yet.
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: Shows if the request was successful.
                  message:
                    type: string
                    description: A short message explaining what went wrong.
                example:
                  status: false
                  message: Internal server error, please contact support@mile.app.
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use a valid Bearer token to authenticate.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.