POST api/deltas

Request Information

URI Parameters

None.

Body Parameters

DeltaViewModel
NameDescriptionTypeAdditional information
DeltaType

DeltaTypeEnum

None.

JsonObject1

string

None.

JsonObject2

string

None.

Request Formats

application/json, text/json

Sample:
{
  "deltaType": 1,
  "jsonObject1": "sample string 1",
  "jsonObject2": "sample string 2"
}

application/xml, text/xml

Sample:
<DeltaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Deltas">
  <DeltaType>Building</DeltaType>
  <JsonObject1>sample string 1</JsonObject1>
  <JsonObject2>sample string 2</JsonObject2>
</DeltaViewModel>

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

Response Information

Resource Description

Collection of DeltaResultViewModel
NameDescriptionTypeAdditional information
FieldName

string

None.

OldValue

string

None.

NewValue

string

None.

ChangeMessage

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "fieldName": "sample string 1",
    "oldValue": "sample string 2",
    "newValue": "sample string 3",
    "changeMessage": "sample string 4"
  },
  {
    "fieldName": "sample string 1",
    "oldValue": "sample string 2",
    "newValue": "sample string 3",
    "changeMessage": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDeltaResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Deltas">
  <DeltaResultViewModel>
    <ChangeMessage>sample string 4</ChangeMessage>
    <FieldName>sample string 1</FieldName>
    <NewValue>sample string 3</NewValue>
    <OldValue>sample string 2</OldValue>
  </DeltaResultViewModel>
  <DeltaResultViewModel>
    <ChangeMessage>sample string 4</ChangeMessage>
    <FieldName>sample string 1</FieldName>
    <NewValue>sample string 3</NewValue>
    <OldValue>sample string 2</OldValue>
  </DeltaResultViewModel>
</ArrayOfDeltaResultViewModel>