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_id}/locations/{location_id}/functions/{function_id}.

Query parameters

Parameters
updateMask

string (FieldMask format)

Required list of fields to be updated in this request.

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

Requires the following OAuth scope:

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

For more information, see the Auth Guide.

Try it!

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Functions