POST api/Valet/Activity/CarInfo/Update/NewCar

Request Information

URI Parameters

None.

Body Parameters

CompleteCarParkWithNewCarBindingModel
NameDescriptionTypeAdditional information
LicencePlate

string

Required

String length: inclusive between 0 and 10

CarModelId

integer

Required

Range: inclusive between 1 and 2147483647

CarColorId

integer

Range: inclusive between 1 and 2147483647

SessionId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "LicencePlate": "sample string 1",
  "CarModelId": 2,
  "CarColorId": 1,
  "SessionId": "50bfbfeb1bdd4a5a87e5d25027b74c96"
}

application/xml, text/xml

Sample:
<CompleteCarParkWithNewCarBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Models.BindingModels">
  <SessionId>50bfbfeb-1bdd-4a5a-87e5-d25027b74c96</SessionId>
  <CarColorId>1</CarColorId>
  <CarModelId>2</CarModelId>
  <LicencePlate>sample string 1</LicencePlate>
</CompleteCarParkWithNewCarBindingModel>

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

Response Information

Resource Description

ServiceResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

MessageId

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "MessageId": 899,
  "Message": "\r\n",
  "Data": {}
}

application/xml, text/xml

Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Services.Response">
  <MessageLog xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string></d2p1:string>
    <d2p1:string></d2p1:string>
  </MessageLog>
</ServiceResponse>