POST api/appointment/freebusy

Request Information

URI Parameters

None.

Body Parameters

PeopleFreeBusyQueryDataContract
NameDescriptionTypeAdditional information
Scope

TimeRangeDataContract

None.

PersonIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Scope": {
    "Start": "2018-11-14T23:42:29.7294167Z",
    "End": "2018-11-14T23:42:29.7294167Z"
  },
  "PersonIds": [
    1,
    2
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PeopleFreeBusyQueryDataContract'.

Response Information

Resource Description

Collection of PeopleFreeBusyQueryResponseDataContract
NameDescriptionTypeAdditional information
PersonId

integer

None.

BusyTimeRanges

Collection of TimeRangeDataContract

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PersonId": 1,
    "BusyTimeRanges": [
      {
        "Start": "2018-11-14T23:42:29.7451258Z",
        "End": "2018-11-14T23:42:29.7451258Z"
      },
      {
        "Start": "2018-11-14T23:42:29.7451258Z",
        "End": "2018-11-14T23:42:29.7451258Z"
      }
    ]
  },
  {
    "PersonId": 1,
    "BusyTimeRanges": [
      {
        "Start": "2018-11-14T23:42:29.7451258Z",
        "End": "2018-11-14T23:42:29.7451258Z"
      },
      {
        "Start": "2018-11-14T23:42:29.7451258Z",
        "End": "2018-11-14T23:42:29.7451258Z"
      }
    ]
  }
]