{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-export-schedule-response-schema.json",
  "title": "ExportScheduleResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-wfm-exportschedule-openapi.yml#/components/schemas/ExportScheduleResponse",
  "type": "object",
  "properties": {
    "agentSchedules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the user associated with the schedule."
          },
          "shifts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "shiftNotes": {
                  "type": "string",
                  "description": "Notes or comments associated with the shift."
                },
                "activityIntervals": {
                  "type": "array",
                  "items": {},
                  "description": "Activity intervals for the shift."
                },
                "baseActivityCode": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "description": "The title of the base activity code."
                    },
                    "open": {
                      "type": "boolean",
                      "description": "Indicates if the shift is open."
                    },
                    "work": {
                      "type": "boolean",
                      "description": "Indicates if the shift is work time."
                    },
                    "overTime": {
                      "type": "boolean",
                      "description": "Indicates if the shift is overtime."
                    }
                  },
                  "description": "Base activity code details for the shift."
                },
                "start": {
                  "type": "string",
                  "format": "date-time",
                  "description": "The start date and time of the shift in ISO 8601 format."
                },
                "end": {
                  "type": "string",
                  "format": "date-time",
                  "description": "The end date and time of the shift in ISO 8601 format."
                }
              }
            },
            "description": "List of shifts for the user."
          }
        },
        "description": "Agent schedule details for a specific user."
      }
    },
    "start": {
      "type": "string",
      "format": "date",
      "description": "The start date of the schedule export (in ISO 8601 format YYYY-MM-DD)."
    },
    "end": {
      "type": "string",
      "format": "date",
      "description": "The end date of the schedule export (in ISO 8601 format YYYY-MM-DD)."
    }
  },
  "required": [
    "agentSchedules",
    "start",
    "end"
  ]
}