Required. The name of the synonymSet to update Format: projects/{projectNumber}/locations/{location}/synonymSets/{context}. It takes the form projects/{project}/locations/{location}/synonymSets/{synonymset}.
Request body
The request body contains an instance of SynonymSet.
Response body
If successful, the response body contains an instance of SynonymSet.
[[["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-05-08 UTC."],[[["\u003cp\u003eUpdates a \u003ccode\u003eSynonymSet\u003c/code\u003e by replacing the existing one with a new one for the specified context.\u003c/p\u003e\n"],["\u003cp\u003eRequires a \u003ccode\u003ePATCH\u003c/code\u003e request to the provided URL endpoint, including the \u003ccode\u003ename\u003c/code\u003e path parameter which defines the synonym set.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of \u003ccode\u003eSynonymSet\u003c/code\u003e, and if the operation is successful, the response body will return an updated instance.\u003c/p\u003e\n"],["\u003cp\u003eFails with a \u003ccode\u003eNOT_FOUND\u003c/code\u003e exception if the \u003ccode\u003eSynonymSet\u003c/code\u003e specified does not exist.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003econtentwarehouse.synonymSets.update\u003c/code\u003e IAM permission and \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.synonymSets.patch\n\nRemove the existing SynonymSet for the context and replaces it with a new one. Throws a NOT_FOUND exception if the SynonymSet is not found.\n\n### HTTP request\n\n`PATCH https://contentwarehouse.googleapis.com/v1/{name}`\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [SynonymSet](/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets#SynonymSet).\n\n### Response body\n\nIf successful, the response body contains an instance of [SynonymSet](/document-warehouse/docs/reference/rest/v1/projects.locations.synonymSets#SynonymSet).\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](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `contentwarehouse.synonymSets.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]