A user-defined name of the function. Function names must be unique globally and match pattern projects/*/locations/*/functions/* It takes the form projects/{project}/locations/{location}/functions/{function}.
[[["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-06-16 UTC."],[[["\u003cp\u003eThis documentation describes how to update an existing Google Cloud Function using a PATCH HTTP request to a specific endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the function's unique name as a path parameter in the format \u003ccode\u003eprojects/*/locations/*/functions/*\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e query parameter determines which fields of the function will be modified during the update process, allowing for partial updates.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of the \u003ccode\u003eFunction\u003c/code\u003e resource that will replace the existing Cloud Function.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful update requests will return an \u003ccode\u003eOperation\u003c/code\u003e object, and authorization for this action requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.functions.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- [Try it!](#try-it)\n\nUpdates existing function.\n\n### HTTP request\n\n`PATCH https://cloudfunctions.googleapis.com/v2alpha/{function.name}`\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Function](/functions/docs/reference/rest/v2alpha/projects.locations.functions#Function).\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/functions/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\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)."]]