POST Api/Appointments/SaveAppointments

Request Information

URI Parameters

None.

Body Parameters

SaveAppointments
NameDescriptionTypeAdditional information
ProductId

integer

None.

AppointmentId

integer

None.

NumberOfPersons

integer

None.

State

integer

None.

CustomField

string

None.

AppointmentFields

UIcomponents

None.

BookingNumber

string

None.

LocationId

integer

None.

DepartmentId

integer

None.

StartTime

date

None.

EndTime

date

None.

SelectedMultiProdUsers

string

None.

CustomerId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProductId": 1,
  "AppointmentId": 2,
  "NumberOfPersons": 3,
  "State": 4,
  "CustomField": "sample string 5",
  "AppointmentFields": {
    "controls": [
      {
        "Name": "sample string 1",
        "Label": "sample string 2",
        "Order": 3,
        "Required": true,
        "CustomerData": true,
        "Text": "sample string 6",
        "Type": "sample string 7",
        "ValidationTypeName": "sample string 8",
        "ControlFriendlyName": "sample string 9",
        "FieldPerPerson": true,
        "FieldPerNotifier": true
      },
      {
        "Name": "sample string 1",
        "Label": "sample string 2",
        "Order": 3,
        "Required": true,
        "CustomerData": true,
        "Text": "sample string 6",
        "Type": "sample string 7",
        "ValidationTypeName": "sample string 8",
        "ControlFriendlyName": "sample string 9",
        "FieldPerPerson": true,
        "FieldPerNotifier": true
      }
    ]
  },
  "BookingNumber": "sample string 6",
  "LocationId": 7,
  "DepartmentId": 8,
  "StartTime": "2019-10-17T08:16:35.6048333+02:00",
  "EndTime": "2019-10-17T08:16:35.6048333+02:00",
  "SelectedMultiProdUsers": "sample string 11",
  "CustomerId": 12
}

application/xml, text/xml

Sample:
<SaveAppointments xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ProductId>1</ProductId>
  <AppointmentId>2</AppointmentId>
  <NumberOfPersons>3</NumberOfPersons>
  <State>4</State>
  <CustomField>sample string 5</CustomField>
  <AppointmentFields>
    <controls>
      <BaseControls>
        <Name>sample string 1</Name>
        <Label>sample string 2</Label>
        <Order>3</Order>
        <Required>true</Required>
        <CustomerData>true</CustomerData>
        <Text>sample string 6</Text>
        <Type>sample string 7</Type>
        <ValidationTypeName>sample string 8</ValidationTypeName>
        <ControlFriendlyName>sample string 9</ControlFriendlyName>
        <FieldPerPerson>true</FieldPerPerson>
        <FieldPerNotifier>true</FieldPerNotifier>
      </BaseControls>
      <BaseControls>
        <Name>sample string 1</Name>
        <Label>sample string 2</Label>
        <Order>3</Order>
        <Required>true</Required>
        <CustomerData>true</CustomerData>
        <Text>sample string 6</Text>
        <Type>sample string 7</Type>
        <ValidationTypeName>sample string 8</ValidationTypeName>
        <ControlFriendlyName>sample string 9</ControlFriendlyName>
        <FieldPerPerson>true</FieldPerPerson>
        <FieldPerNotifier>true</FieldPerNotifier>
      </BaseControls>
    </controls>
  </AppointmentFields>
  <BookingNumber>sample string 6</BookingNumber>
  <LocationId>7</LocationId>
  <DepartmentId>8</DepartmentId>
  <StartTime>2019-10-17T08:16:35.6048333+02:00</StartTime>
  <EndTime>2019-10-17T08:16:35.6048333+02:00</EndTime>
  <SelectedMultiProdUsers>sample string 11</SelectedMultiProdUsers>
  <CustomerId>12</CustomerId>
</SaveAppointments>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultAppointmentMade
NameDescriptionTypeAdditional information
AppointmentGuid

string

None.

BookingNumber

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AppointmentGuid": "sample string 1",
  "BookingNumber": "sample string 2"
}

application/xml, text/xml

Sample:
<ResultAppointmentMade xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AppointmentGuid>sample string 1</AppointmentGuid>
  <BookingNumber>sample string 2</BookingNumber>
</ResultAppointmentMade>