Required. The name of the FHIR store to rollback, in the format of "projects/{projectId}/locations/{locationId}/datasets/{datasetId} /fhirStores/{fhirStoreId}".
Authorization requires the following IAM permission on the specified resource name:
healthcare.fhirStores.rollback
Request body
The request body contains data with the following structure:
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
Optional. A filter expression that matches data in the Resource.meta element. Supports all filters in AIP-160 except the "has"(:) operator.
Supports the following custom functions:
tag("<system>") = "<code>" for tag filtering.
extension_value_ts("<uri>") = <timestamp> for filtering extensions with a timestamp, where <timestamp> is a Unix timestamp. Supports the >, <, <=, >=, and != comparison operators.
ChangeType
Type of transaction to execute during FHIR resource rollback
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis feature, \u003ccode\u003eprojects.locations.datasets.fhirStores.rollback\u003c/code\u003e, allows you to revert changes made to resources within a FHIR store to a specific point in time.\u003c/p\u003e\n"],["\u003cp\u003eThe rollback operation's progress can be tracked using \u003ccode\u003eoperations.get\u003c/code\u003e, and both immediate errors and logs are available for monitoring.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying a \u003ccode\u003erollbackTime\u003c/code\u003e to revert to, along with a \u003ccode\u003eresultGcsBucket\u003c/code\u003e for depositing the outcome, as well as the FHIR store's \u003ccode\u003ename\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eOptional parameters can refine the rollback process, including specifying resource \u003ccode\u003etype\u003c/code\u003e, \u003ccode\u003efilteringFields\u003c/code\u003e, \u003ccode\u003eforce\u003c/code\u003e rollback, \u003ccode\u003echangeType\u003c/code\u003e, \u003ccode\u003eexcludeRollbacks\u003c/code\u003e, and an \u003ccode\u003einputGcsObject\u003c/code\u003e listing specific resources.\u003c/p\u003e\n"],["\u003cp\u003eThe rollback functionality requires the \u003ccode\u003ehealthcare.fhirStores.rollback\u003c/code\u003e IAM permission and one of the specified OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: fhirStores.rollback\n\n**Full name**: projects.locations.datasets.fhirStores.rollback\n\nRolls back resources from the FHIR store to the specified time.\n\nThis method returns an [Operation](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation) that can be used to track the status of the rollback by calling `operations.get`.\n\nImmediate fatal errors appear in the [error](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation.FIELDS.error) field, errors are also logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging)). Otherwise, when the operation finishes, a detailed response of type [RollbackFhirResourcesResponse](/healthcare-api/docs/reference/rest/Shared.Types/RollbackFhirResourcesResponse) is returned in the [response](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation.FIELDS.response) field. The [metadata](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation.FIELDS.metadata) field type for this operation is [OperationMetadata](/healthcare-api/docs/reference/rest/v1/OperationMetadata).\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1/{name=projects/*/locations/*/datasets/*/fhirStores/*}:rollback`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/healthcare-api/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-healthcare`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nRollbackFhirResourceFilteringFields\n-----------------------------------\n\nChangeType\n----------\n\nType of transaction to execute during FHIR resource rollback"]]