# MigrateObjectParams

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MigrateObjectParams/

Struct for a parameter set for MigrateObject.

- **Full name:** `MFiles.MigrateObjectParams`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-obj_id"></a>`obj_id` | [`ObjID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjID/index.md) | 1 | The object to migrate. |
| <a id="f-set_properties"></a>`set_properties` | repeated [`PropertyValue`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyValue/index.md) | 2 | The properties to add/replace. |
| <a id="f-source_object_policy"></a>`source_object_policy` | [`MigrationSourceObjectPolicy`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MigrationSourceObjectPolicy/index.md) | 3 | Specifies what is done to the source object after the migration. Values: `MIGRATION_SOURCE_OBJECT_POLICY_UNSPECIFIED` (0), `MIGRATION_SOURCE_OBJECT_POLICY_KEEP` (1), `MIGRATION_SOURCE_OBJECT_POLICY_DELETE` (2), `MIGRATION_SOURCE_OBJECT_POLICY_DESTROY` (3). |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCObjectOperations.MigrateObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/MigrateObject/index.md): Migrates a promoted object. Requires full control of the vault; used by migration tools.
- [IRPCObjectOperations.MigrateObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/MigrateObjects/index.md): Migrates and promotes objects. Requires full control of the vault; used by migration tools.

<a id="used-in-fields"></a>

## Used in fields

- [`MigrateObjectRequest.params`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/MigrateObject/index.md#request): Parameters.
- [`MigrateObjectsRequest.params`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/MigrateObjects/index.md#request): Parameters.
