Skip to main content
POST
Copy one week's roster into another as a draft

Authorizations

Authorization
string
header
required

Issue keys in Settings → API. Send them as Authorization: Bearer ont_… (an X-Api-Key: ont_… header is also accepted). Session-cookie routes are used by the OnTime web apps and are shown for completeness.

Body

application/json
fromWeekStart
string
required
Pattern: ^\d{4}-\d{2}-\d{2}$
toWeekStart
string
required
Pattern: ^\d{4}-\d{2}-\d{2}$

Response

200 - application/json

Success

created
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991