Skip to main content
POST
Typescript (SDK)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Body

application/json

The FunctionsServiceUpdateFunctionRequest message.

commitMessage
string

The commit message describing this code update. Defaults to a generic message if content is set and this is empty. Ignored if content is empty.

content
object

File map for a new code commit, applied as the function's new head commit. Keys are file paths in the function root; values are file contents as bytes. See CreateFunctionRequest.initial_content for the required entry-file signature. Independent of update_mask.

function
Function · object | null

Function represents a customer-provided code extension in the API

updateMask
string | null

Response

200 - application/json

Successful response

The FunctionsServiceUpdateFunctionResponse message.

commit
Function Commit · object | null

FunctionCommit represents a single commit in a function's history

function
Function · object | null

Function represents a customer-provided code extension in the API