PUT api/Companies

Request Information

URI Parameters

None.

Body Parameters

CompanyViewModel
NameDescriptionTypeAdditional information
PhoneNumber

string

String length: inclusive between 0 and 100

Latitude

decimal number

None.

Longitude

decimal number

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

IsTrackingPackages

boolean

None.

TimeTrackingMinuteInterval

TimeTrackingMinuteInterval

None.

Request Formats

application/json, text/json

Sample:
{
  "phoneNumber": "sample string 1",
  "latitude": 1.0,
  "longitude": 1.0,
  "id": "sample string 2",
  "isActive": true,
  "name": "sample string 4",
  "address": "sample string 5",
  "address2": "sample string 6",
  "city": "sample string 7",
  "state": "sample string 8",
  "zip": "sample string 9",
  "country": "sample string 10",
  "isTrackingPackages": true,
  "timeTrackingMinuteInterval": 0
}

application/xml, text/xml

Sample:
<CompanyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Business.ViewModels.Companies">
  <Address xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 5</Address>
  <Address2 xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 6</Address2>
  <City xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 7</City>
  <Country xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 10</Country>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 2</Id>
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</IsActive>
  <IsTrackingPackages xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</IsTrackingPackages>
  <Name xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 4</Name>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 1</PhoneNumber>
  <State xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 8</State>
  <TimeTrackingMinuteInterval xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">One</TimeTrackingMinuteInterval>
  <Zip xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 9</Zip>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
</CompanyViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CompanyViewModel
NameDescriptionTypeAdditional information
PhoneNumber

string

String length: inclusive between 0 and 100

Latitude

decimal number

None.

Longitude

decimal number

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

IsTrackingPackages

boolean

None.

TimeTrackingMinuteInterval

TimeTrackingMinuteInterval

None.

Response Formats

application/json, text/json

Sample:
{
  "phoneNumber": "sample string 1",
  "latitude": 1.0,
  "longitude": 1.0,
  "id": "sample string 2",
  "isActive": true,
  "name": "sample string 4",
  "address": "sample string 5",
  "address2": "sample string 6",
  "city": "sample string 7",
  "state": "sample string 8",
  "zip": "sample string 9",
  "country": "sample string 10",
  "isTrackingPackages": true,
  "timeTrackingMinuteInterval": 0
}

application/xml, text/xml

Sample:
<CompanyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Business.ViewModels.Companies">
  <Address xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 5</Address>
  <Address2 xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 6</Address2>
  <City xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 7</City>
  <Country xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 10</Country>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 2</Id>
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</IsActive>
  <IsTrackingPackages xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">true</IsTrackingPackages>
  <Name xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 4</Name>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 1</PhoneNumber>
  <State xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 8</State>
  <TimeTrackingMinuteInterval xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">One</TimeTrackingMinuteInterval>
  <Zip xmlns="http://schemas.datacontract.org/2004/07/Klutchn.Poco.Models">sample string 9</Zip>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
</CompanyViewModel>