Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.hl7V2Stores.messages.patch
Update the message.
The contents of the message in Message.data and data extracted from the contents such as Message.create_time cannot be altered. Only the Message.labels field is allowed to be updated. The labels in the request are merged with the existing set of labels. Existing labels with the same keys are updated.
Output only. Resource name of the Message, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/hl7V2Stores/{hl7V2StoreId}/messages/{message_id}.
[[["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 webpage documents how to update a message using the \u003ccode\u003eprojects.locations.datasets.hl7V2Stores.messages.patch\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eOnly the \u003ccode\u003eMessage.labels\u003c/code\u003e field can be updated, while \u003ccode\u003eMessage.data\u003c/code\u003e and data extracted from it, such as \u003ccode\u003eMessage.create_time\u003c/code\u003e, are immutable.\u003c/p\u003e\n"],["\u003cp\u003eThe update is performed via a \u003ccode\u003ePATCH\u003c/code\u003e HTTP request to a specific URL using gRPC Transcoding syntax, where the \u003ccode\u003emessage.name\u003c/code\u003e is a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, which specifies the fields to update, and the request body should contain an instance of \u003ccode\u003eMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an instance of \u003ccode\u003eMessage\u003c/code\u003e, and proper authorization is required, using either \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scopes.\u003c/p\u003e\n"]]],[],null,["# Method: messages.patch\n\n**Full name**: projects.locations.datasets.hl7V2Stores.messages.patch\n\nUpdate the message.\n\nThe contents of the message in [Message.data](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.hl7V2Stores.messages#Message.FIELDS.data) and data extracted from the contents such as [Message.create_time](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.hl7V2Stores.messages#Message.FIELDS.create_time) cannot be altered. Only the [Message.labels](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.hl7V2Stores.messages#Message.FIELDS.labels) field is allowed to be updated. The labels in the request are merged with the existing set of labels. Existing labels with the same keys are updated.\n\n### HTTP request\n\n`PATCH https://healthcare.googleapis.com/v1/{message.name=projects/*/locations/*/datasets/*/hl7V2Stores/*/messages/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Message](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.hl7V2Stores.messages#Message).\n\n### Response body\n\nIf successful, the response body contains an instance of [Message](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.hl7V2Stores.messages#Message).\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)."]]