Create Schedule
Changed onCreates a new schedule for the company. Rejects duplicate schedule data for the same location and configuration.
OAuth Scopes: scheduling:schedules.write, time_tracking.write
Request
- Base URLhttps://companySubDomain.bamboohr.com
- Auth
- HTTP basic
- or OAuth 2Authorization code/authorize.phpToken URL/token.phpScopesscheduling:schedules.write
- or OAuth 2Authorization code/authorize.phpToken URL/token.phpScopestime_tracking.write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Morning Shift",
"locationId": 1,
"timezone": "America/Denver",
"startOfWeek": "Monday",
"earlyClockInThreshold": 15,
"lateClockInThreshold": 10,
"earlyClockOutThreshold": 5,
"lateClockOutThreshold": 15,
"managerUserIds": [
1,
2,
3
],
"employeeIds": [
10,
20,
30
],
"claimsRequireApprovalDefault": true,
"autoPublishLeadTimeUnit": "weeks",
"autoPublishLeadTimeQuantity": 2
}Response
Schedule created successfully
Example response
{
"id": "0199de9b-6bcb-77e7-941d-3caf74b9a372",
"name": "Main Schedule",
"locationId": 123,
"timezone": "America/Denver",
"startOfWeek": "Monday",
"earlyClockInThreshold": 10,
"lateClockInThreshold": 10,
"earlyClockOutThreshold": 5,
"lateClockOutThreshold": 15,
"claimsRequireApprovalDefault": true,
"managerUserIds": [
1,
2
],
"employeeIds": [
10,
20
],
"createdAt": "2025-01-01T06:00:00Z",
"updatedAt": "2025-01-01T06:00:00Z",
"deletedAt": "2025-01-01T06:00:00Z",
"autoPublishLeadTimeUnit": "weeks",
"autoPublishLeadTimeQuantity": 2,
"nextAutoPublishAt": "2026-07-05T06:00:00Z",
"lastAutoPublishAt": "2026-06-28T06:00:00Z"
}Changes
- breaking
the request property
became required - info
the security scope
scheduling:schedules.writewas added to the endpoint's security schemeoauth - info
the security scope
time_tracking.writewas removed from the endpoint's security schemeoauth - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking