Update a function
Applies a partial update: only the fields named in updateMask are written, and everything else is left alone. An empty mask is INVALID_ARGUMENT, and so is a path that is not writable: the writable paths are display_name, owner_team, build, scaling, env, git_branch, git_subdirectory, git_access_token, git_webhook_secret, set_secrets and clear_secrets. displayName is validated as at creation. build and scaling each replace their whole block when named. env replaces the whole map. set_secrets merges into the stored secrets and clear_secrets removes secrets by name; secret values are stored encrypted and only their names come back, in secretKeys. Settings that do not apply to the function's kind are refused with INVALID_ARGUMENT.
git_branch and git_subdirectory change where a connected repository deploys from. A function with no repository is FAILED_PRECONDITION. git_access_token and git_webhook_secret are write-only: an empty string clears them. A running version keeps the environment it was created with, so env and secret changes go live with the next version (CreateVersion with a redeploy source).
Needs the editor role in the owning team. Moving the function with owner_team also needs the admin role in the destination team. A function.update event records which settings and secret names changed, never their values. Callable with a console session or a team API key (Authorization: Bearer xk_…).
Required scopes: functions:functions:edit
Authorization
BearerAuth A team API key, created by a team admin in the console and presented as
Authorization: Bearer xk_…. Xeonr Auth issues and verifies it; the
secret is shown once at creation and stored only as a hash, and a
revoked key stops working within 30 seconds. An existing fnt_… token
is accepted the same way.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
^[A-Za-z0-9_-]+$1 <= length <= 641 <= length <= 64owner_team moves the function to another team (URN or slug). Requires the functions admin role in BOTH teams, and the destination must be entitled to the product.
^[A-Za-z0-9:._-]+$1 <= length <= 255BuildConfig is the author's declared intent. Every field is optional, and each applies to only some kinds.
ScalingSpec is passed through to the platform. Ignored for static functions, which have nothing to scale. An unset field means the platform's default.
env is replaced wholesale, because a client can round-trip it.
properties <= 128set_secrets is merged in rather than replacing, because a client can never read a secret back and so has nothing to send in a whole-map write. Secrets win over env on a key collision.
properties <= 128clear_secrets removes secrets by name.
items <= 128git_branch changes the branch of a connected repository that deploys.
length <= 255git_subdirectory changes the path within the repository that builds.
length <= 255git_access_token and git_webhook_secret are write-only: stored encrypted and never read back. An empty string clears.
length <= 512length <= 512update_mask names the fields above to write, by their proto names (display_name, owner_team, build, scaling, env, git_branch, git_subdirectory, git_access_token, git_webhook_secret, set_secrets, clear_secrets). Required: an empty mask, or one naming anything else, is INVALID_ARGUMENT.
Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.FunctionsService/UpdateFunction" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{ "updateMask": "displayName,scaling" }'{
"function": "map[activeVersionId:v-7c1e04b9a2d35f68 createdAt:2026-10-22T09:30:00Z displayName:Checkout API (prod) functionId:fn-3f9a2c71d4e8b605 kind:KIND_NODE name:amber-heron-3f9a ownerTeam:urn:xeonr:auth:team:0f6b5f8c-3d2a-4c1e-9b7a-6e2d1c4f8a90 updatedAt:2026-10-23T09:30:00Z]"
}List functions POST
Lists functions sorted by their hostname label (`name`), each with its `activeVersion` and `latestVersion` embedded so a status column needs no call per row. `ownerTeam` (a team URN or slug) narrows the listing to one team and needs the viewer role there; a team the caller is not in answers `NOT_FOUND`. Left empty, the listing covers every team in the caller's teams claim, or an API key's own team. `search` is a case-insensitive substring match on `name`. Pages default to 50 functions and are capped at 500 (`limit`). Pass `nextCursor` back as `cursor`; an empty `nextCursor` means the last page. The cursor is opaque, and a function created during a paged walk can shift later pages. `total` counts every function matching `ownerTeam` and `search` across all pages, so a `limit` 1 request is enough to show a count. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:read`
xeonr.functions.v2.MeService
MeService is the Functions console's own view of the signed-in person. The shared console's GetMe says who they are and which teams they belong to; what it cannot say is their standing in this product. Needs a signed-in user: no method here carries allow_api_keys.