Method: projects.locations.functions.patch

Stay organized with collections Save and categorize content based on your preferences.

Updates existing function.

HTTP request


Path parameters



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}.

Query parameters


string (FieldMask format)

Required. The list of fields in CloudFunction that have to be updated.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of CloudFunction.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.