[[["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."],[[["\u003cp\u003eThis API allows you to update specific fields of a deployment resource in the API hub, such as \u003ccode\u003edisplay_name\u003c/code\u003e, \u003ccode\u003edescription\u003c/code\u003e, and \u003ccode\u003eendpoints\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e query parameter is required to specify which fields within the deployment resource are being modified during the update operation.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a PATCH method with a URL that follows gRPC Transcoding syntax and requires a deployment name within the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body needs to include an instance of the \u003ccode\u003eDeployment\u003c/code\u003e resource, while the response body will also contain a \u003ccode\u003eDeployment\u003c/code\u003e resource if the update is successful.\u003c/p\u003e\n"],["\u003cp\u003eUpdating a deployment resource requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003eapihub.deployments.update\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.deployments.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 a deployment resource in the API hub. The following fields in the [deployment resource](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment) can be updated:\n\n- [display_name](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.display_name)\n- [description](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.description)\n- [documentation](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.documentation)\n- [deployment_type](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.deployment_type)\n- [resource_uri](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.resource_uri)\n- [endpoints](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.endpoints)\n- [slo](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.slo)\n- [environment](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.environment)\n- [attributes](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.attributes)\n- [sourceProject](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.source_project)\n- [sourceEnvironment](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.source_environment)\n- [managementUrl](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.management_url)\n- [sourceUri](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment.FIELDS.source_uri) The [updateMask](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments/patch#body.QUERY_PARAMETERS.update_mask) should be used to specify the fields being updated.\n\n### HTTP request\n\n`PATCH https://apihub.googleapis.com/v1/{deployment.name=projects/*/locations/*/deployments/*}`\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 [Deployment](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment).\n\n### Response body\n\nIf successful, the response body contains an instance of [Deployment](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.deployments#Deployment).\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.deployments.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]