POST api/Locations

Request Information

URI Parameters

None.

Body Parameters

LocationViewModel
NameDescriptionTypeAdditional information
PhoneNumber

string

String length: inclusive between 0 and 100

Latitude

decimal number

None.

Longitude

decimal number

None.

CompanyId

string

None.

TimeCardLocationRequired

boolean

None.

Id

string

None.

IsActive

boolean

None.

Name

string

Required

String length: inclusive between 0 and 300

Address

string

String length: inclusive between 0 and 500

Address2

string

String length: inclusive between 0 and 500

City

string

String length: inclusive between 0 and 500

State

string

String length: inclusive between 0 and 100

Zip

string

String length: inclusive between 0 and 60

Country

string

String length: inclusive between 0 and 200

CompanyName

string

String length: inclusive between 0 and 500

RoundReportHours

boolean

None.

LaborRate

decimal number

None.

LogoBlob

string

String length: inclusive between 0 and 200

LogoContainer

string

String length: inclusive between 0 and 200

LogoUrl

string

None.

Request Formats

application/json, text/json

Sample:
{
  "phoneNumber": "sample string 1",
  "latitude": 1.0,
  "longitude": 1.0,
  "companyId": "sample string 2",
  "timeCardLocationRequired": true,
  "id": "sample string 4",
  "isActive": true,
  "name": "sample string 6",
  "address": "sample string 7",
  "address2": "sample string 8",
  "city": "sample string 9",
  "state": "sample string 10",
  "zip": "sample string 11",
  "country": "sample string 12",
  "companyName": "sample string 13",
  "roundReportHours": true,
  "laborRate": 1.0,
  "logoBlob": "sample string 15",
  "logoContainer": "sample string 16",
  "logoUrl": "sample string 17"
}

application/xml, text/xml

Sample:
<LocationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Business.ViewModels.Locations">
  <Address xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 7</Address>
  <Address2 xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 8</Address2>
  <City xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 9</City>
  <CompanyName xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 13</CompanyName>
  <Country xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 12</Country>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 4</Id>
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</IsActive>
  <LaborRate xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">1</LaborRate>
  <LogoBlob xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 15</LogoBlob>
  <LogoContainer xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 16</LogoContainer>
  <LogoUrl xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 17</LogoUrl>
  <Name xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 6</Name>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 1</PhoneNumber>
  <RoundReportHours xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</RoundReportHours>
  <State xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 10</State>
  <Zip xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 11</Zip>
  <CompanyId>sample string 2</CompanyId>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <TimeCardLocationRequired>true</TimeCardLocationRequired>
</LocationViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.