Method: projects.locations.functions.patch

Updates existing function.

HTTP request

PATCH https://cloudfunctions.googleapis.com/v1/{function.name}

Path parameters

Parameters
function.name

string

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

Parameters
updateMask

string (FieldMask format)

Required. This is a comma-separated list of fully qualified field names in CloudFunction that have to be updated.

Example: "entryPoint,eventTrigger.resource".

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:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.