# IRPCEvents.CreateEventAssignRequest

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Events and notifications](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEvents/index.md)

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

Badges: `Vault API / standard` `write` `session` `returns metadata structure version`

Not available: fails with "Not implemented.".

- **Service:** [Events and notifications](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEvents/index.md) `MFiles.IRPCEvents`
- **gRPC method:** `/MFiles.IRPCEvents/CreateEventAssignRequest`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/create-event-assign-request`
- **Request:** [`CreateEventAssignRequestRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEvents/CreateEventAssignRequest/index.md#request)
- **Response:** [`CreateEventAssignRequestResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEvents/CreateEventAssignRequest/index.md#response)
- **Book and level:** Vault API, standard
- **Kind:** write
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** yes (in the mfiles-metadata-version-bin trailer)
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

Kept for compatibility. To assign work to users, create an assignment object with
[AddObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/AddObject/index.md).

<a id="request"></a>

## Request: CreateEventAssignRequestRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `objid` | [`ObjID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjID/index.md) | The document that is concerned by this request. |
| `objid.type` | `int32` | The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID). |
| `objid.item_id` | [`ItemID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemID/index.md) | The ID of the object within its type, in `item_id.internal_id`. |
| `objid.item_id.internal_id` | `int32` | The ID of the object or value list item. |
| `objid.item_id.external_repository_id` | [`ExternalRepositoryID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExternalRepositoryID/index.md) | Used only for objects in external repositories (external connectors). Leave it unset for objects stored in the vault. |
| `users[]` | repeated `int32` | The users who receive the request. |
| `groups[]` | repeated `int32` | The groups who receive the request. |

<a id="response"></a>

## Response: CreateEventAssignRequestResponse

No fields.

<a id="related"></a>

## Related methods

- [IRPCObjectOperations.AddObject](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/AddObject/index.md): Creates a new object without files.
