Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.fhirStores.rollback
Rolls back resources from the FHIR store to the specified time.
This method returns an Operation that can be used to track the status of the rollback by calling operations.get.
Immediate fatal errors appear in the error field, errors are also logged to Cloud Logging (see Viewing error logs in Cloud Logging). Otherwise, when the operation finishes, a detailed response of type RollbackFhirResourcesResponse is returned in the response field. The metadata field type for this operation is OperationMetadata.
HTTP request
POST https://healthcare.googleapis.com/v1beta1/{name=projects/*/locations/*/datasets/*/fhirStores/*}:rollback
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 list of operation IDs to roll back. Only changes made by these operations will be rolled back.
metadataFilter
string
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 API method \u003ccode\u003eprojects.locations.datasets.fhirStores.rollback\u003c/code\u003e allows you to revert FHIR resources in a FHIR store to a specific point in time.\u003c/p\u003e\n"],["\u003cp\u003eThe rollback operation is tracked via an \u003ccode\u003eOperation\u003c/code\u003e resource, which provides status updates and detailed results upon completion and is callable with \u003ccode\u003eoperations.get\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the \u003ccode\u003erollbackTime\u003c/code\u003e, the type of resources to revert, and filter for specific changes, using \u003ccode\u003etype[]\u003c/code\u003e \u003ccode\u003efilteringFields\u003c/code\u003e, and \u003ccode\u003echangeType\u003c/code\u003e, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should also contain the \u003ccode\u003eresultGcsBucket\u003c/code\u003e in which the result will be deposited.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the HTTP request is required and should follow the format \u003ccode\u003eprojects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}\u003c/code\u003e, and requires the \u003ccode\u003ehealthcare.fhirStores.rollback\u003c/code\u003e IAM permission.\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` 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/v1beta1/OperationMetadata).\n\n### HTTP request\n\n`POST https://healthcare.googleapis.com/v1beta1/{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\nFilters to select resources that need to be rolled back.\n\nChangeType\n----------\n\nType of transaction to execute during FHIR resource rollback"]]