POST api/Client

Request Information

URI Parameters

None.

Body Parameters

Client
NameDescriptionTypeAdditional information
ClientId

integer

None.

Name

string

None.

PracticeId

integer

None.

Address

string

None.

LocationGPS

DbGeography

None.

LocationGeoCode

string

None.

Email

string

None.

CellNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "Name": "sample string 2",
  "PracticeId": 1,
  "Address": "sample string 3",
  "LocationGPS": null,
  "LocationGeoCode": "sample string 4",
  "Email": "sample string 5",
  "CellNumber": "sample string 6"
}

text/html

Sample:
{"ClientId":1,"Name":"sample string 2","PracticeId":1,"Address":"sample string 3","LocationGPS":null,"LocationGeoCode":"sample string 4","Email":"sample string 5","CellNumber":"sample string 6"}

application/xml, text/xml

Sample:
<Client xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetAPI.DataModel">
  <Address>sample string 3</Address>
  <CellNumber>sample string 6</CellNumber>
  <ClientId>1</ClientId>
  <Email>sample string 5</Email>
  <LocationGPS xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
  <LocationGeoCode>sample string 4</LocationGeoCode>
  <Name>sample string 2</Name>
  <PracticeId>1</PracticeId>
</Client>

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

Response Information

Resource Description

Client
NameDescriptionTypeAdditional information
ClientId

integer

None.

Name

string

None.

PracticeId

integer

None.

Address

string

None.

LocationGPS

DbGeography

None.

LocationGeoCode

string

None.

Email

string

None.

CellNumber

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ClientId": 1,
  "Name": "sample string 2",
  "PracticeId": 1,
  "Address": "sample string 3",
  "LocationGPS": null,
  "LocationGeoCode": "sample string 4",
  "Email": "sample string 5",
  "CellNumber": "sample string 6"
}

text/html

Sample:
{"ClientId":1,"Name":"sample string 2","PracticeId":1,"Address":"sample string 3","LocationGPS":null,"LocationGeoCode":"sample string 4","Email":"sample string 5","CellNumber":"sample string 6"}

application/xml, text/xml

Sample:
<Client xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetAPI.DataModel">
  <Address>sample string 3</Address>
  <CellNumber>sample string 6</CellNumber>
  <ClientId>1</ClientId>
  <Email>sample string 5</Email>
  <LocationGPS xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Spatial" i:nil="true" />
  <LocationGeoCode>sample string 4</LocationGeoCode>
  <Name>sample string 2</Name>
  <PracticeId>1</PracticeId>
</Client>