Take over a schedule on a team agent
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.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
schedule_id*stringSuccess
curl -X POST 'http://localhost:7091/api/schedules/string/take_over'Run a schedule immediately (trigger_source='manual') POST
Run a schedule immediately (trigger_source='manual'). [Personal access token](/API/personal-access-tokens) scope: `schedules:write`.
Edit a schedule's editable fields PUT
Edit a schedule's editable fields. [Personal access token](/API/personal-access-tokens) scope: `schedules:write`.