Update a function

Updates the function's mutable metadata — currently only the display
name. A string sets the display name; null clears it, after which
the function's name falls back to its slug. Leading and trailing
whitespace is trimmed; a whitespace-only name is rejected. Acts only
on a function owned by the branch: a slug that is only inherited from
an ancestor branch returns 404 — rename it on the branch that owns
it. Like every other change on a branch, a rename is isolated per
branch: a branch forked before the rename keeps the name it had at
fork time.

Note: This endpoint is currently in Private Beta.

Path Params
string
required
^[a-z0-9-]{1,60}$

The Neon project ID

string
required
^[a-z0-9-]{1,60}$

The Neon branch ID

string
required
^[a-z0-9]{1,20}$

The function slug

Body Params
string | null
required

New display name for the function. null clears the display
name; the function's name then falls back to its slug. Leading
and trailing whitespace is trimmed; a whitespace-only name is
rejected.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json