Full name: projects.locations.instances.users.conversations.messages.patch
messages.patch is used to update an existing message. Only the most recent message in the given conversation can be updated. Only the inputs field of the message can be updated, which will result in the AI response being updated accordingly.
HTTP request
Path parameters
Parameters
message.name
string
Identifier. Full resource name for the message. Format: projects/{project}/locations/{location}/instances/{instance}/users/{user}/conversations/{conversation}/messages/{message}
[[["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-08-25 UTC."],[[["\u003cp\u003eThis webpage details how to update an existing message using the \u003ccode\u003eUpdateMessage\u003c/code\u003e function, focusing on the most recent message within a conversation.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request utilizes the \u003ccode\u003ePATCH\u003c/code\u003e method with a specific URL format to update a message resource identified by its full resource name in the \u003ccode\u003emessage.name\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify which fields to update using the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, allowing for partial updates of the message resource.\u003c/p\u003e\n"],["\u003cp\u003eBoth the request and response bodies contain an instance of the \u003ccode\u003eMessage\u003c/code\u003e resource, defining the structure for message updates and returned data.\u003c/p\u003e\n"],["\u003cp\u003eUpdating a message requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003echronicle.messages.update\u003c/code\u003e on the message resource.\u003c/p\u003e\n"]]],[],null,["# Method: messages.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\n**Full name**: projects.locations.instances.users.conversations.messages.patch\n\nmessages.patch is used to update an existing message. Only the most recent message in the given conversation can be updated. Only the inputs field of the message can be updated, which will result in the AI response being updated accordingly.\n\n### HTTP request\n\nChoose a location: \nafrica-south1 asia-northeast1 asia-south1 asia-southeast1 asia-southeast2 australia-southeast1 europe-west12 europe-west2 europe-west3 europe-west6 europe-west9 me-central1 me-central2 me-west1 northamerica-northeast2 southamerica-east1 us eu \n\n\u003cbr /\u003e\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Message](/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.users.conversations.messages#Message).\n\n### Response body\n\nIf successful, the response body contains an instance of [Message](/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.users.conversations.messages#Message).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `chronicle.messages.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]