# ResourceMoved

Event payload returned for the resource-moved platform event type.

> Kind: Apex type · Updated: 2026-07-03

This custom Apex type represents the output that Platform Events and the Platform Events Apex handler return for the resource-moved platform event type. It is exposed on the Event type and surfaced by Client.getEventDetails().

## Fields

### Output fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| Id | String | optional | Id of the moved resource. |
| Type | String | optional | Type of the moved resource (file or folder). |
| SourceParentFolderId | String | optional | Id of the folder the resource was moved from. |
| DestinationId | String | optional | Id of the folder the resource was moved to. |
| Library | String | optional | The related files library such as cloudfiles, google, sharepoint etc. |
| DriveId | String | optional | Id of the drive the resource belongs to. |
