POST web/Margin/MarginFactor

Request Information

URI Parameters

None.

Body Parameters

CreateMarginFactor
NameDescriptionTypeAdditional information
margin_detail

MarginDetail

None.

margin_factor

Collection of MarginFactor

None.

Request Formats

application/json, text/json

Sample:
{
  "margin_detail": {
    "entity": {
      "value": "sample string 1",
      "id": 2
    },
    "margin_mode": 1,
    "is_active": true
  },
  "margin_factor": [
    {
      "call_percentage": 1.1,
      "stop_percentage": 2.1,
      "margin_percentage": 3.1,
      "margin_per_template": {
        "value": "sample string 1",
        "id": 2
      },
      "margin_req_calculation": {
        "value": "sample string 1",
        "id": 2
      },
      "forward_facility": 4.1,
      "available_facility_calc": {
        "value": "sample string 1",
        "id": 2
      },
      "margin_type": {
        "value": "sample string 1",
        "id": 2
      },
      "alternate_margin_per_template": {
        "value": "sample string 1",
        "id": 2
      }
    },
    {
      "call_percentage": 1.1,
      "stop_percentage": 2.1,
      "margin_percentage": 3.1,
      "margin_per_template": {
        "value": "sample string 1",
        "id": 2
      },
      "margin_req_calculation": {
        "value": "sample string 1",
        "id": 2
      },
      "forward_facility": 4.1,
      "available_facility_calc": {
        "value": "sample string 1",
        "id": 2
      },
      "margin_type": {
        "value": "sample string 1",
        "id": 2
      },
      "alternate_margin_per_template": {
        "value": "sample string 1",
        "id": 2
      }
    }
  ]
}

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

application/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot access a closed Stream.

text/xml

Sample:

An exception has occurred while using the formatter 'CustomXmlFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot access a closed Stream.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.