WorkSchedule > Schedule
Creates a Schedule
Changed onCreates a Schedule
post/api/2026-10-01/resources/work_schedule/schedules
Request
- Base URLhttps://api.factorialhr.com
- URLhttps://api.factorialhr.com/api/2026-10-01/resources/work_schedule/schedules
- Auth
- OAuth 2Authorization code: https://id.factorialhr.com/oauth/authorizeToken URL: https://id.factorialhr.com/api/oauth/token scopes: time_tracking
- or API key in header x-api-key
Request body
Example request
{
"name": "Morning shift",
"schedule_type": "flexible"
}Response
CREATED
Example response
{
"id": "1",
"name": "Morning shift",
"company_id": "1",
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z",
"employee_ids": [
"1",
"2"
],
"periods": [
{
"id": 1,
"schedule_id": 1,
"default": false,
"start_day": 15,
"start_month": 12,
"end_day": 31,
"end_month": 12,
"schedule_type": "flexible"
}
]
}Changes
- info
endpoint added
- info