POST api/CustomRule

Request Information

URI Parameters

None.

Body Parameters

CustomRuleDetailsModel
NameDescriptionTypeAdditional information
CustomRuleId

integer

None.

CustomRuleName

string

None.

CustomRuleDesc

string

None.

BlueprintId

integer

None.

BlueprintName

string

None.

CustomRuleDetails

Collection of CustomRuleDetail

None.

BlueprintFields

Collection of BaseDropdownResponse

None.

Operator

Collection of BaseDropdownResponse

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomRuleId": 1,
  "CustomRuleName": "sample string 2",
  "CustomRuleDesc": "sample string 3",
  "BlueprintId": 4,
  "BlueprintName": "sample string 5",
  "CustomRuleDetails": [
    {
      "CustomRuleDetailsId": 1,
      "BlueprintFieldId": 2,
      "BlueprintFieldName": "sample string 3",
      "GroupNo": 4,
      "Operator": 5,
      "FieldValue": "sample string 6"
    },
    {
      "CustomRuleDetailsId": 1,
      "BlueprintFieldId": 2,
      "BlueprintFieldName": "sample string 3",
      "GroupNo": 4,
      "Operator": 5,
      "FieldValue": "sample string 6"
    }
  ],
  "BlueprintFields": [
    {
      "Id": 1,
      "Name": "sample string 2"
    },
    {
      "Id": 1,
      "Name": "sample string 2"
    }
  ],
  "Operator": [
    {
      "Id": 1,
      "Name": "sample string 2"
    },
    {
      "Id": 1,
      "Name": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<CustomRuleDetailsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qorus.TasQ.ClassModels.CustomRules">
  <BlueprintFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/Qorus.TasQ.ClassModels.CommonModels.Response">
    <d2p1:BaseDropdownResponse>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:BaseDropdownResponse>
    <d2p1:BaseDropdownResponse>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:BaseDropdownResponse>
  </BlueprintFields>
  <BlueprintId>4</BlueprintId>
  <BlueprintName>sample string 5</BlueprintName>
  <CustomRuleDesc>sample string 3</CustomRuleDesc>
  <CustomRuleDetails>
    <CustomRuleDetail>
      <BlueprintFieldId>2</BlueprintFieldId>
      <BlueprintFieldName>sample string 3</BlueprintFieldName>
      <CustomRuleDetailsId>1</CustomRuleDetailsId>
      <FieldValue>sample string 6</FieldValue>
      <GroupNo>4</GroupNo>
      <Operator>5</Operator>
    </CustomRuleDetail>
    <CustomRuleDetail>
      <BlueprintFieldId>2</BlueprintFieldId>
      <BlueprintFieldName>sample string 3</BlueprintFieldName>
      <CustomRuleDetailsId>1</CustomRuleDetailsId>
      <FieldValue>sample string 6</FieldValue>
      <GroupNo>4</GroupNo>
      <Operator>5</Operator>
    </CustomRuleDetail>
  </CustomRuleDetails>
  <CustomRuleId>1</CustomRuleId>
  <CustomRuleName>sample string 2</CustomRuleName>
  <Operator xmlns:d2p1="http://schemas.datacontract.org/2004/07/Qorus.TasQ.ClassModels.CommonModels.Response">
    <d2p1:BaseDropdownResponse>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:BaseDropdownResponse>
    <d2p1:BaseDropdownResponse>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:BaseDropdownResponse>
  </Operator>
</CustomRuleDetailsModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.