POST /automations/{automation_id}/link

Move an automation into a repository, by id or by name.

MethodPath
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":"..."}'

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"
}

On this page

No Headings
Schedule a demo