Disconnect a function's repository
Stops the function deploying from its repository and returns the updated function, whose workspace becomes editable again. For GitLab, the webhook and the project access token provisioned for this function are removed on a best-effort basis. The active version keeps serving. A function with no repository is returned unchanged.
Needs the editor role in the owning team. A git.disconnect event is recorded. 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 <= 64Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.RepositoriesService/DeleteRepository" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"function": "map[displayName:Checkout API filesReadOnly:false functionId:fn-3f9a2c71d4e8b605 kind:KIND_NODE name:amber-heron-3f9a]"
}Repositories
The repository a function deploys from. Reachable with a team API key.
List deployable repositories POST
Lists the repositories a provider connection can deploy from, with each one's full name, default branch and visibility, sorted by full name. With `connectionId`, it lists that team connection's repositories, which needs the viewer role in the connection's team. Otherwise it lists through `functionId`'s own provider connection, which needs the viewer role in the function's team. `search` filters GitLab projects; a GitHub App installation lists every repository it covers. Pages default to 50 repositories and are capped at 500 (`limit`); pass `nextCursor` back as `cursor` until it comes back empty. The flags tell a picker what to show instead of an empty list. `connected` is false when the function has no provider yet. `listable` is false when the connection cannot enumerate repositories. `reconnect` is true when the credential that could list has lapsed. A provider whose integration is not configured on this deployment answers `UNIMPLEMENTED`. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:read`