[[["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 document describes how to update an API resource in the API Hub, including fields such as display name, description, owner, documentation, and more.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e query parameter is required to specify which fields are being updated, using a comma-separated list of fully qualified field names.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to update an API resource is a PATCH request to the provided URL, formatted using gRPC Transcoding syntax, with the API name provided in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of the \u003ccode\u003eApi\u003c/code\u003e resource, and the successful response will also contain an instance of the \u003ccode\u003eApi\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eUpdating the \u003ccode\u003eowner\u003c/code\u003e field requires a complete owner message, which updates both the owner and email fields, and the request requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and \u003ccode\u003eapihub.apis.update\u003c/code\u003e IAM permission on the name resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.apis.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 API resource in the API hub. The following fields in the [API](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api) can be updated:\n\n- [display_name](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.display_name)\n- [description](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.description)\n- [owner](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.owner)\n- [documentation](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.documentation)\n- [target_user](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.target_user)\n- [team](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.team)\n- [business_unit](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.business_unit)\n- [maturity_level](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.maturity_level)\n- [api_style](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.api_style)\n- [attributes](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api.FIELDS.attributes)\n\nThe [updateMask](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis/patch#body.QUERY_PARAMETERS.update_mask) should be used to specify the fields being updated.\n\nUpdating the owner field requires complete owner message and updates both owner and email fields.\n\n### HTTP request\n\n`PATCH https://apihub.googleapis.com/v1/{api.name=projects/*/locations/*/apis/*}`\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 [Api](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api).\n\n### Response body\n\nIf successful, the response body contains an instance of [Api](/apigee/docs/reference/apis/apihub/rest/v1/projects.locations.apis#Api).\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.apis.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]