---
title: "POST /v1/assuredworkloads:revertArchivedResourceEvents"
method: POST
path: "/v1/assuredworkloads:revertArchivedResourceEvents"
tags: ["assuredworkloads"]
---

# POST /v1/assuredworkloads:revertArchivedResourceEvents

`POST /v1/assuredworkloads:revertArchivedResourceEvents`

Finds matching ArchivedResourceEvents and moves them back to the ResourceEvents table.

## Request body

- GoogleCloudAssuredworkloadsV1RevertArchivedResourceEventsRequest — Request for reverting archived resource events.
  - `batchSize` integer — Required. The number of events to process in a single transaction batch.
  - `archiveEndTime` string, google-datetime — Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong.
  - `maxEventsMove` integer — Required. The maximum total number of events to move in this request.
  - `region` string — Required. The region of the workload(s) whose events should be reverted. This is used to filter workloads based on AssurantWorkloadData.region.
  - `archiveStartTime` string, google-datetime — Required. Only events within this time range will be reverted. This helps prevent reverting everything when something goes wrong.
  - `organizationId` string, int64 — Required. The organization ID for which to revert events.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/assuredworkloads.md) · [All operations](https://skmtc.dev/google/apis/assuredworkloads/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/assuredworkloads/revisions/bff5f680b449/schema)
