POST api/casedealranges

Request Information

URI Parameters

None.

Body Parameters

CaseDealRange
NameDescriptionTypeAdditional information
ID

integer

None.

PriceFrom

decimal number

None.

PriceTo

decimal number

None.

CaseDeals

Collection of CaseDeal

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "priceFrom": 2.1,
  "priceTo": 3.1,
  "caseDeals": [
    {
      "$id": "2",
      "id": 1,
      "caseRangeID": 2,
      "percentFrom": 3.1,
      "percentTo": 4.1,
      "percentOfCaseDeal": 5.1
    },
    {
      "$ref": "2"
    }
  ]
}

application/xml, text/xml

Sample:
<CaseDealRange xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Hosts">
  <CaseDeals>
    <CaseDeal>
      <CaseRangeID>2</CaseRangeID>
      <ID>1</ID>
      <PercentFrom>3.1</PercentFrom>
      <PercentOfCaseDeal>5.1</PercentOfCaseDeal>
      <PercentTo>4.1</PercentTo>
    </CaseDeal>
    <CaseDeal>
      <CaseRangeID>2</CaseRangeID>
      <ID>1</ID>
      <PercentFrom>3.1</PercentFrom>
      <PercentOfCaseDeal>5.1</PercentOfCaseDeal>
      <PercentTo>4.1</PercentTo>
    </CaseDeal>
  </CaseDeals>
  <ID>1</ID>
  <PriceFrom>2.1</PriceFrom>
  <PriceTo>3.1</PriceTo>
</CaseDealRange>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.