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 webpage describes how to update an existing Google Cloud Function using a PATCH HTTP request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003efunction.name\u003c/code\u003e path parameter is a required unique identifier for the function, conforming to the \u003ccode\u003eprojects/*/locations/*/functions/*\u003c/code\u003e pattern.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eupdateMask\u003c/code\u003e query parameter allows users to specify which fields of the function should be updated, or all fields are updated if no field mask is provided.\u003c/p\u003e\n"],["\u003cp\u003eThe request body uses the Function data type, and the response body returns an Operation data type if the request was successful.\u003c/p\u003e\n"],["\u003cp\u003eThe authentication scope required for this call is \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\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/v2beta/{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/v2beta/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)."]]