# ObjectVersionDataRequest

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.ObjectVersionDataRequest/

Struct for a object data request details.

- **Full name:** `MFiles.ObjectVersionDataRequest`
- **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-required_data_flags"></a>`required_data_flags` | [`OBJECTDATAREQUESTFLAGS`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OBJECTDATAREQUESTFLAGS/index.md) | 1 | Specifies the required object information. |
| <a id="f-optional_data_flags"></a>`optional_data_flags` | [`OBJECTDATAREQUESTFLAGS`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OBJECTDATAREQUESTFLAGS/index.md) | 2 | Specifies the optional object information. |
| <a id="f-version_type"></a>`version_type` | [`ObjectVersionDataRequestVersionType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ObjectVersionDataRequestVersionType/index.md) | 3 | Specifies the version type to search for. Values: `OBJECT_VERSION_DATA_REQUEST_VERSION_TYPE_SPECIFIC_VERSIONS` (0), `OBJECT_VERSION_DATA_REQUEST_VERSION_TYPE_LATEST_VERSIONS` (1), `OBJECT_VERSION_DATA_REQUEST_VERSION_TYPE_LATEST_CHECKED_IN_VERSIONS` (2). |
| <a id="f-error_tolerance"></a>`error_tolerance` | [`ObjectVersionDataRequestErrorTolerance`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ObjectVersionDataRequestErrorTolerance/index.md) | 4 | Specifies how error cases are handled during the request. Values: `OBJECT_VERSION_DATA_REQUEST_ERROR_TOLERANCE_FAIL_ON_ANY_ERROR` (0), `OBJECT_VERSION_DATA_REQUEST_ERROR_TOLERANCE_ALLOW_MISSING_OBJECT_VERSIONS` (1). |
| <a id="f-identity_type"></a>`identity_type` | [`ObjectVersionDataRequestIdentityType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ObjectVersionDataRequestIdentityType/index.md) | 5 | Specifies how objects with changed identities are handled. Values: `OBJECT_VERSION_DATA_REQUEST_IDENTITY_TYPE_SPECIFIC` (0), `OBJECT_VERSION_DATA_REQUEST_IDENTITY_TYPE_MANAGED_IF_AVAILABLE` (1). |
| <a id="f-object_activities_parameters"></a>`object_activities_parameters` | [`ObjectVersionActivityRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjectVersionActivityRequest/index.md) | 6 | Specifies the required object version activity input. |

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

## Used by methods

- [IRPCObjectOperations.GetObjectDataOfMultipleObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectDataOfMultipleObjects/index.md): Gets selected data of several objects: version information, properties, ACL, the caller's permissions, relationships, version comments and more, with a result or an error per object.

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

## Used in fields

- [`GetObjectDataOfMultipleObjectsRequest.data_request`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetObjectDataOfMultipleObjects/index.md#request): What to return, which versions to read and how to handle missing objects. Set at least `required_data_flags` or `optional_data_flags`, and `version_type`.
