POST
/
schedules
curl --request POST \
  --url https://stoplight.io/mocks/replyteam/reply/765516802/schedules \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "schedule-123",
  "name": "Business Hours Schedule",
  "schedule": {
    "startDate": "2025-07-01T08:00:00Z",
    "endDate": "2025-12-31T23:59:59Z",
    "timezone": "Europe/Warsaw",
    "workingWindows": [
      {
        "days": [
          1,
          2,
          3,
          4
        ],
        "from": "09:00",
        "to": "17:00"
      },
      {
        "days": [
          5
        ],
        "from": "10:00",
        "to": "18:00"
      }
    ]
  },
  "useContactTimezone": false,
  "skipPublicHolidays": true,
  "publicHolidayRegion": "US",
  "isDefault": true,
  "isActive": true,
  "createdAt": "2024-03-08T14:30:00Z",
  "updatedAt": "2025-06-18T09:21:12Z"
}'
{
  "id": "schedule-123",
  "name": "Business Hours Schedule",
  "schedule": {
    "startDate": "2025-07-01T08:00:00Z",
    "endDate": "2025-12-31T23:59:59Z",
    "timezone": "Europe/Warsaw",
    "workingWindows": [
      {
        "days": [
          1,
          2,
          3,
          4
        ],
        "from": "09:00",
        "to": "17:00"
      },
      {
        "days": [
          5
        ],
        "from": "10:00",
        "to": "18:00"
      }
    ]
  },
  "useContactTimezone": false,
  "skipPublicHolidays": true,
  "publicHolidayRegion": "US",
  "isDefault": true,
  "isActive": true,
  "createdAt": "2024-03-08T14:30:00Z",
  "updatedAt": "2025-06-18T09:21:12Z"
}

Body

application/json

Response

201 - application/json

Schedule created successfully

The response is of type object.