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
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
| Name | Type | Description |
|---|---|---|
| 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 -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"}' result = client.call("connecteam", "copy_previous_week", {"scheduler_id":1177,"week_start":"2026-10-19"}) const result = await cotlet.call('connecteam', 'copy_previous_week', {"scheduler_id":1177,"week_start":"2026-10-19"}); cotlet call connecteam copy_previous_week --data '{"scheduler_id":1177,"week_start":"2026-10-19"}' Example response
{
"scheduler_id": 1177,
"week_start": "2026-10-19",
"copied": 14,
"published": false
}