---
title: "POST /experimental/schedules/{id}/move-to-repo"
method: POST
path: "/experimental/schedules/{id}/move-to-repo"
tags: ["Schedules"]
---

# POST /experimental/schedules/{id}/move-to-repo

`POST /experimental/schedules/{id}/move-to-repo`

## Request

- Base URL: `https://api.tessl.io`
- URL: `https://api.tessl.io/experimental/schedules/{id}/move-to-repo`
- Auth: none declared

Opens a pull request that adds an app-defined loop to its project's tessl.json, creating the file when the repository has none. When the pull request merges, the next sync turns the app loop into the loop the file declares, keeping its runs. Returns 200 with the loop's pull request when one is already open, and 201 when it opens one. Needs Tessl App on the repository's GitHub account.

## Path parameters

- `id` string, uuid, required

## Headers

- `Authorization` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'schedule-move-to-repo', required
    - `attributes` object, required
      - `repoKey` string, required
      - `pullRequestUrl` string, required
      - `createsManifest` boolean, required
      - `warnings` union[], required
        - union
          - object
            - `code` 'environment-not-found', required
          - object
            - `code` 'factory-stage', required
            - `stage` string, required
          - object
            - `code` 'paused', required
          - object
            - `code` 'bundled-skill', required
            - `skill` string, required

## Other responses

- `201`: Default Response
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error

## Changes

- **2026-10-21** `9ce306cb6c7c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tessl/apis/tessl-api/changes/experimental/schedules/:id/move-to-repo/post.md)

---

[API](https://skmtc.dev/tessl/apis/tessl-api.md) · [All operations](https://skmtc.dev/tessl/apis/tessl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tessl/apis/tessl-api/revisions/7386f1e6295b?raw)
