POST api/SchemeMaster?mainGroup={mainGroup}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
mainGroup

integer

Required

Body Parameters

Z_SchemeMasterDetails
NameDescriptionTypeAdditional information
schemeMaster

S_SchemeMaster

None.

schemeRangeDetail

Collection of S_SchemeRangeDetail

None.

schemeStateWise

Collection of S_StateWiseScheme

None.

productGroup

Collection of string

None.

productType

Collection of string

None.

productSize

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "schemeMaster": {
    "Id": 1,
    "SchemeId": 2,
    "SchemeName": "sample string 3",
    "Description": "sample string 4",
    "FromDate": "2024-04-27T19:41:06.0760172+00:00",
    "ToDate": "2024-04-27T19:41:06.0760172+00:00",
    "SchemeType": "sample string 5",
    "ProductMainGroupId": 6,
    "Active": "sample string 7",
    "ApplyOn": "sample string 8",
    "SchemeImagePath": "QEA=",
    "BranchCode": 9,
    "CreatedBy": 1,
    "CreatedOn": "2024-04-27T19:41:06.0760172+00:00",
    "ModifiedBy": 1,
    "ModifiedOn": "2024-04-27T19:41:06.0760172+00:00",
    "PerUnitFlag": "sample string 10"
  },
  "schemeRangeDetail": [
    {
      "Id": 1,
      "SchemeId": 2,
      "LineNumber": 1,
      "Range": 1.0,
      "Discount": 1.0,
      "BranchCode": 3,
      "CustomerType": 1
    },
    {
      "Id": 1,
      "SchemeId": 2,
      "LineNumber": 1,
      "Range": 1.0,
      "Discount": 1.0,
      "BranchCode": 3,
      "CustomerType": 1
    }
  ],
  "schemeStateWise": [
    {
      "Id": 1,
      "SchemeId": 2,
      "StateId": 3
    },
    {
      "Id": 1,
      "SchemeId": 2,
      "StateId": 3
    }
  ],
  "productGroup": [
    "sample string 1",
    "sample string 2"
  ],
  "productType": [
    "sample string 1",
    "sample string 2"
  ],
  "productSize": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Z_SchemeMasterDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
  <productGroup xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </productGroup>
  <productSize xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </productSize>
  <productType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </productType>
  <schemeMaster>
    <Active>sample string 7</Active>
    <ApplyOn>sample string 8</ApplyOn>
    <BranchCode>9</BranchCode>
    <CreatedBy>1</CreatedBy>
    <CreatedOn>2024-04-27T19:41:06.0760172+00:00</CreatedOn>
    <Description>sample string 4</Description>
    <FromDate>2024-04-27T19:41:06.0760172+00:00</FromDate>
    <Id>1</Id>
    <ModifiedBy>1</ModifiedBy>
    <ModifiedOn>2024-04-27T19:41:06.0760172+00:00</ModifiedOn>
    <PerUnitFlag>sample string 10</PerUnitFlag>
    <ProductMainGroupId>6</ProductMainGroupId>
    <SchemeId>2</SchemeId>
    <SchemeImagePath>QEA=</SchemeImagePath>
    <SchemeName>sample string 3</SchemeName>
    <SchemeType>sample string 5</SchemeType>
    <ToDate>2024-04-27T19:41:06.0760172+00:00</ToDate>
  </schemeMaster>
  <schemeRangeDetail>
    <S_SchemeRangeDetail>
      <BranchCode>3</BranchCode>
      <CustomerType>1</CustomerType>
      <Discount>1</Discount>
      <Id>1</Id>
      <LineNumber>1</LineNumber>
      <Range>1</Range>
      <SchemeId>2</SchemeId>
    </S_SchemeRangeDetail>
    <S_SchemeRangeDetail>
      <BranchCode>3</BranchCode>
      <CustomerType>1</CustomerType>
      <Discount>1</Discount>
      <Id>1</Id>
      <LineNumber>1</LineNumber>
      <Range>1</Range>
      <SchemeId>2</SchemeId>
    </S_SchemeRangeDetail>
  </schemeRangeDetail>
  <schemeStateWise>
    <S_StateWiseScheme>
      <Id>1</Id>
      <SchemeId>2</SchemeId>
      <StateId>3</StateId>
    </S_StateWiseScheme>
    <S_StateWiseScheme>
      <Id>1</Id>
      <SchemeId>2</SchemeId>
      <StateId>3</StateId>
    </S_StateWiseScheme>
  </schemeStateWise>
</Z_SchemeMasterDetails>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.