Skip to Content
Xeonr Developer Docs
API Specification

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.

Update a function POST

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`

Get my Functions role POST

Returns whether the caller is a platform administrator, and their Functions role (`admin`, `editor` or `viewer`) in each of their teams. Takes no parameter and reads nobody else. Needs a signed-in user: team API keys are refused (`PERMISSION_DENIED`). **Required scopes:** `functions:functions:read`