Get timetable

GET /timetable

Get timetable with filtering

Headers

  • Bearer token used for authorization

    Minimum length is 1.

  • Unique identifier to allow referencing a particular transaction or event chain

    Minimum length is 1.

Query parameters

  • from string(date-time) Required

    Start date and time to be considered for filtering (ISO 8601)

    Minimum length is 1.

  • to string(date-time) Required

    End date and time to be considered for filtering (ISO 8601)

    Minimum length is 1.

  • employee-id array[string]

    Employee ID(s) to be considered for filtering

    At least 1 element. Minimum length of each is 1.

  • office-id string Required

    Office ID to be considered for filtering

    Minimum length is 1.

  • subject-id string Required

    Subject ID to be considered for filtering

    Minimum length is 1.

  • meeting-type string Required

    Meeting type to be considered for filtering

    Values are OFFICE, ON_LOCATION, PHONE, or VIDEO.

  • Lead segment ID to be considered for filtering

    Minimum length is 1.

  • Listing ID to be considered for filtering

    Minimum length is 1.

  • location object

    Location to be considered for filtering

    Additional properties are NOT allowed.

    Hide location attributes Show location attributes object
    • latitude number

      Minimum value is -90, maximum value is 90.

    • Minimum value is -180, maximum value is 180.

Responses

  • 200 application/json

    Successful operation

    Hide response attribute Show response attribute object
    • data object Required

      Additional properties are NOT allowed.

      Hide data attributes Show data attributes object
      • duration integer Required

        Minimum value is 0.

      • earliestPossible string(date-time) Required

        Minimum length is 1.

      • latestPossible string(date-time) Required

        Minimum length is 1.

      • listing object | null

        Additional properties are NOT allowed.

        Hide listing attribute Show listing attribute object | null
        • id string Required

          Minimum length is 1.

      • meetingType string Required

        Values are OFFICE, ON_LOCATION, PHONE, or VIDEO.

      • office object Required

        Additional properties are NOT allowed.

        Hide office attribute Show office attribute object
        • id string Required

          Minimum length is 1.

      • slots array[object] Required
        Hide slots attributes Show slots attributes object
        • availableEmployees array[object] Required
          Hide availableEmployees attributes Show availableEmployees attributes object
          • autoAccept boolean Required
          • employee object Required

            Additional properties are NOT allowed.

            Hide employee attribute Show employee attribute object
            • id string Required

              Minimum length is 1.

        • start string(date-time) Required

          Minimum length is 1.

        • end string(date-time) Required

          Minimum length is 1.

      • subject object Required

        Additional properties are NOT allowed.

        Hide subject attribute Show subject attribute object
        • id string Required

          Minimum length is 1.

      • trailingBufferTime integer Required

        Minimum value is 0.

  • 422 application/json

    Business validation failed

    • TIMETABLE_NOT_SCHEDULABLE

    See Error codes

    Hide response attribute Show response attribute object
    • errors array[object] Required

      At least 1 element.

      Hide errors attributes Show errors attributes object
      • message string Required

        Minimum length is 1.

      • code string Required

        Minimum length is 1.

      • type string Required

        Minimum length is 1.

      • statusCode string Required

        Minimum length is 1.

      • arguments object | null

        Additional properties are allowed.

GET /timetable
curl \
 -X GET https://api.development.pexipengage.com/enterprises/acme/timetable?from=2024-05-04T09%3A42%3A00%2B00%3A00&to=2024-05-04T09%3A42%3A00%2B00%3A00&office-id=123&subject-id=123&meeting-type=OFFICE \
 -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" \
 -H "X-Correlation-Id: a4f0048e-c983-11ed-afa1-0242ac120002"
Response examples (200)
{
  "data": {
    "duration": 5,
    "earliestPossible": "2022-08-01T09:00:00.000Z",
    "latestPossible": "2022-09-01T17:00:00.000Z",
    "listing": {
      "id": "123"
    },
    "meetingType": "OFFICE",
    "office": {
      "id": "123"
    },
    "slots": [
      {
        "availableEmployees": [
          {
            "autoAccept": true,
            "employee": {
              "id": "123"
            }
          }
        ],
        "start": "2022-08-01T09:00:00.000Z",
        "end": "2022-08-01T10:00:00.000Z"
      }
    ],
    "subject": {
      "id": "123"
    },
    "trailingBufferTime": 5
  }
}
Response examples (422)
{
  "errors": [
    {
      "message": "string",
      "code": "string",
      "type": "string",
      "statusCode": "string",
      "arguments": {}
    }
  ]
}