POST api/availability/available

Request Information

URI Parameters

None.

Body Parameters

AvailableRequest
NameDescriptionTypeAdditional information
CustomerID

decimal number

Required

EmployeeID

decimal number

Required

Latitude

decimal number

Required

Longitude

decimal number

Required

Hours

integer

Required

Range: inclusive between 1 and 12

Key

string

Required

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": 1.0,
  "EmployeeID": 2.0,
  "Latitude": 3.1,
  "Longitude": 4.1,
  "Hours": 5,
  "Key": "sample string 6"
}

application/xml, text/xml

Sample:
<AvailableRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.Availability">
  <Key xmlns="http://schemas.datacontract.org/2004/07/API.Models">sample string 6</Key>
  <CustomerID>1</CustomerID>
  <EmployeeID>2</EmployeeID>
  <Hours>5</Hours>
  <Latitude>3.1</Latitude>
  <Longitude>4.1</Longitude>
</AvailableRequest>

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 'AvailableRequest'.

Response Information

Resource Description

SuccessResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.