Functions

Link to GitHub

POST /v1/functions/{id}/link
Permission
write:functions
Tokens
API key, CLI user token

Open a pull request containing the definition. Git takes ownership when that pull request merges and syncs.

Path parameters

idstringrequired
{
"path": str,
"repository": str
}

Request

pathstring

File path within the repository. Leave it out for `.ellipsis/functions/<name>.yaml`. If set, it must be a `.yaml` or `.yml` file under `.ellipsis/` at any depth. In the repository named `.ellipsis`, the repository root is that directory.

repositorystringrequired

Repository name within your account. The owner is always the account, so pass a bare name such as "api-repo".

Response

functionFunctionrequired

The function, still managed through the API until the pull request merges.

pathstringrequired

The file path the definition will be written to.

pull_request_urlstringrequired

The pull request that adds the file. The function becomes managed by that file once it merges.

On this page

No Headings
Schedule a demo
For HumansFor Agents