The updateMask should be used to specify the fields being updated.
An operation can be updated only if the operation was created via operations.create API. If the operation was created by parsing the spec, then it can be edited by updating the spec.
[[["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-07-28 UTC."],[],[],null,["# Method: projects.locations.apis.versions.operations.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\nUpdate an operation in an API version. The following fields in the [ApiOperation resource](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations#ApiOperation) can be updated:\n\n- \\[details.description\\]\\[ApiOperation.details.description\\]\n- \\[details.documentation\\]\\[ApiOperation.details.documentation\\]\n- \\[details.http_operation.path\\]\\[ApiOperation.details.http_operation.path.path\\]\n- \\[details.http_operation.method\\]\\[ApiOperation.details.http_operation.method\\]\n- \\[details.deprecated\\]\\[ApiOperation.details.deprecated\\]\n- [attributes](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations#ApiOperation.FIELDS.attributes)\n\nThe [updateMask](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations/patch#body.QUERY_PARAMETERS.update_mask) should be used to specify the fields being updated.\n\nAn operation can be updated only if the operation was created via [operations.create](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations/create#google.cloud.apihub.v1.ApiHub.CreateApiOperation) API. If the operation was created by parsing the spec, then it can be edited by updating the spec.\n\n### HTTP request\n\n`PATCH https://apihub.googleapis.com/v1/{apiOperation.name=projects/*/locations/*/apis/*/versions/*/operations/*}`\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 [ApiOperation](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations#ApiOperation).\n\n### Response body\n\nIf successful, the response body contains an instance of [ApiOperation](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis.versions.operations#ApiOperation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `apihub.apiOperations.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]