# MigrateThingDefinitionResponse

Type: MigrateThingDefinitionResponse

Response payload after applying or simulating a migration to a Thing.

Schema: [MigrateThingDefinitionResponse](https://sourcey-ditto.pages.dev/http-api-doc/models/migratethingdefinitionresponse.md)

- `thingId` (required)
  Type: string
  
  Unique identifier representing the migrated Thing.

- `patch` (required)
  Type: object
  
  The patch containing updates to the Thing.
  
  - `definition` (optional)
    Reference: [Definition](https://sourcey-ditto.pages.dev/http-api-doc/models/definition.md); Type: Definition
    
    A single fully qualified identifier of a definition in the form '<namespace>:<name>:<version>' or a valid HTTP(s) URL
    
    pattern: "([_a-zA-Z0-9\\-.]+):([_a-zA-Z0-9\\-.]+):([_a-zA-Z0-9\\-.]+)"
  
  - `attributes` (optional)
    Reference: [Attributes](https://sourcey-ditto.pages.dev/http-api-doc/models/attributes.md); Type: Attributes
    
    An arbitrary JSON object describing the attributes of a thing.
  
  - `features` (optional)
    Reference: [Features](https://sourcey-ditto.pages.dev/http-api-doc/models/features.md); Type: Features
    
    List of features where the key represents the `featureId` of each feature.
    The `featureId` key must be unique in the list.

- `mergeStatus` (required)
  Type: string
  
  Indicates the result of the migration process.
  - `APPLIED`: The migration was successfully applied.
  - `DRY_RUN`: The migration result was calculated but not applied.
  
  
  enum: ["APPLIED","DRY_RUN"]
  
  Example:
  
  ```json
  "APPLIED"
  ```