POST /automations/{automation_id}/link
Move an automation into a repository, by id or by name.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| POST | /v1/automations/{automation_id}/link |
Opens a pull request adding its definition file. The automation keeps running unchanged meanwhile; merging hands it over to the file, after which the file is what changes it. Nothing happens if the pull request is never merged.
Path parameters
automation_idstringrequired
curl -X POST "https://api.ellipsis.dev/v1/automations/{automation_id}/link" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"repository":"..."}'import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.automations.link("...", "...")
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.automations.link('...', { repository: '...' });
console.log(result);Request
Example request body
{
"path": "string",
"repository": "string"
}
Body parameters
pathstring
File path within the repo. Omit for the default agents/<slug>.yaml; if set it must be a location the sync scans (a .yaml/.yml file under agents/, .agents/, ellipsis/, or .ellipsis/ at any depth).
repositorystringrequired
Repository name within the caller's account; the owner is always the account, so pass a bare name (e.g. "my-service"), not "owner/my-service".
Response
Example response · 200
{
"path": "string",
"pull_request_url": "string"
}