Copy the previous week

Copy every shift of the previous week into the week you name, as drafts, or only one employee's shifts.

POST https://cotlet.dev/api/v1/connecteam/schedulers/{scheduler_id}/previous-week/copy

write Confirm

Runs copy previous week of the Job Scheduler for the week that starts on week_start. Copied shifts are drafts: employees do not see them until publish_shifts runs. Pass user_id to copy one employee's shifts only. Connecteam does not say how existing shifts in the target week are treated, so read the week with list_shifts first. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: copy_previous_week
NameTypeDescription
scheduler_id integer required integer Schedule ID from list_schedulers.
week_start date required date First day of the week to fill, YYYY-MM-DD.
user_id integer integer Copy only this employee's shifts.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/connecteam/schedulers/1177/previous-week/copy \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"week_start":"2026-10-19"}'
Python
result = client.call("connecteam", "copy_previous_week", {"scheduler_id":1177,"week_start":"2026-10-19"})
Node.js
const result = await cotlet.call('connecteam', 'copy_previous_week', {"scheduler_id":1177,"week_start":"2026-10-19"});
CLI
cotlet call connecteam copy_previous_week --data '{"scheduler_id":1177,"week_start":"2026-10-19"}'

Example response

JSON

{
  "scheduler_id": 1177,
  "week_start": "2026-10-19",
  "copied": 14,
  "published": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.