Skip to Content
Docs

Take over a schedule on a team agent

POST
/api/schedules/{schedule_id}/take_over

Make the caller the payer of a schedule on a team agent: it runs under them from now on (its failure count reset, the chat it was set from no longer linked). Editors and up of the team; a personal agent's schedule can't be taken over. Returns the schedule in the list's shape and whether anything changed. Not available to access tokens. Args: schedule_id: Schedule id from the URL.

Returns: 200 {success, schedule, changed}; changed is false when the caller already paid for it. Refusals carry {success: false, error, message}: 401; 404 schedule_not_found; 403 workspace_role_required; 409 take_over_team_only or schedule_finished (completed or cancelled); 429 max_schedules.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

schedule_id*string

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/schedules/string/take_over'
Example Response200
Empty