Skip to main content
PATCH
Update a Cloud Function
Safety and behavior notes
  • A successful database update can return HTTP 200 with deploy_error.
  • Only code is type-checked; trigger_event has no allowlist.
  • Changes to code or trigger settings and activation attempt a deployment. Deactivation by itself does not deploy.
Sending code publishes it at once: the next matching event runs it, and it is recorded as a new version. To change the code without touching production, save a draft, test it, and publish it.

Authorizations

X-API-Key
string
header
required

API key for authentication. Keys are prefixed with nxr_live_.

Path Parameters

id
string<uuid>
required

Cloud Function id.

Body

application/json
name
string
description
string
trigger_event
string
code
string

New code, published immediately and recorded as a version. To change code without publishing it, save a draft instead.

is_active
boolean

Response

Successful response.

function
object
required
deploy_error
string | null
required
success
any
required

Observed top-level response field.

Last modified on October 6, 2026