# IRPCEventsAdmin.UpdateEventLogFilterDefaultValue

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md)

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

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Makes a saved event log filter the user's default filter, or clears its default flag.

- **Service:** [Event administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/index.md) `MFiles.IRPCEventsAdmin`
- **gRPC method:** `/MFiles.IRPCEventsAdmin/UpdateEventLogFilterDefaultValue`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/update-event-log-filter-default-value`
- **Request:** [`UpdateEventLogFilterDefaultValueRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/UpdateEventLogFilterDefaultValue/index.md#request)
- **Response:** [`UpdateEventLogFilterDefaultValueResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/UpdateEventLogFilterDefaultValue/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

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

## Remarks

- Requires a vault session and the vault right `manage_events`.
- Only `id` and `default_filter_view` are used. With `default_filter_view` true, the caller's
  previous default filter stops being the default. An unknown `id` is not reported as an error.

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

## Request: UpdateEventLogFilterDefaultValueRequest

This is copy of EventLogFilter for backwards compatibility.
Cannot use alias because alias that would require service proto to depend directly on struct proto.

> 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 |
|---|---|---|
| `id` | `int64` | The ID of one of your saved filters, from [GetEventLogFilters](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCEventsAdmin/GetEventLogFilters/index.md). |
| `name` | `string` | Ignored. |
| `created_by_user_account` | `int32` | Ignored. |
| `condition` | [`EventLogFilterCondition`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventLogFilterCondition/index.md) | Ignored. |
| `condition.object_type` | `int32` | Object Type in Filter View. |
| `condition.object_id` | `string` | Object ID in Filter View. |
| `condition.object_name` | `string` | Object Name in Filter View. |
| `condition.object_class` | `int32` | Object Class in Filter View. |
| `condition.event_types` | [`EventTypeArray`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EventTypeArray/index.md) | Event Types in Filter View. |
| `condition.event_types.event_types[]` | repeated [`EventType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.EventType/index.md) | The event types. |
| `condition.event_caused_by_user` | `string` | User name in Filter View. |
| `condition.start_time` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | Start time in Filter View. |
| `condition.end_time` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | End time in Filter View. |
| `default_filter_view` | `bool` | True to make the filter the default, false to clear its default flag. |

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

## Response: UpdateEventLogFilterDefaultValueResponse

A structure that specifies UpdateEventLogFilterDefaultValue response payload.

No fields.
