Request Information

URI Parameters

None.

Body Parameters

The rule.

Pico.Rule
NameDescriptionTypeAdditional information
description

Gets or sets the description.

string

None.

expression

Gets or sets the expression.

string

None.

failureMessage

Gets or sets the failure message.

string

None.

successMessage

Gets or sets the success message.

string

None.

id

Gets or sets the rule identifier.

integer

None.

ruleType

Gets or sets the rule type identifier.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "description": "sample String 1",
  "expression": "sample String 2",
  "failureMessage": "sample String 3",
  "successMessage": "sample String 4",
  "id": "5",
  "ruleType": "6"
}

text/html

Sample:
{"description":"sample String 1","expression":"sample String 2","failureMessage":"sample String 3","successMessage":"sample String 4","id":"5","ruleType":"6"}

application/xml, text/xml

Sample:
<Rule xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Description>sample String 1</Description>
  <Expression>sample String 2</Expression>
  <FailureMessage>sample String 3</FailureMessage>
  <SuccessMessage>sample String 4</SuccessMessage>
  <RuleId>5</RuleId>
  <RuleTypeId>6</RuleTypeId>
</Rule>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The created rule.

Pico.Rule
NameDescriptionTypeAdditional information
description

Gets or sets the description.

string

None.

expression

Gets or sets the expression.

string

None.

failureMessage

Gets or sets the failure message.

string

None.

successMessage

Gets or sets the success message.

string

None.

id

Gets or sets the rule identifier.

integer

None.

ruleType

Gets or sets the rule type identifier.

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "description": "sample String 1",
  "expression": "sample String 2",
  "failureMessage": "sample String 3",
  "successMessage": "sample String 4",
  "id": "5",
  "ruleType": "6"
}

text/html

Sample:
{"description":"sample String 1","expression":"sample String 2","failureMessage":"sample String 3","successMessage":"sample String 4","id":"5","ruleType":"6"}

application/xml, text/xml

Sample:
<Rule xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Description>sample String 1</Description>
  <Expression>sample String 2</Expression>
  <FailureMessage>sample String 3</FailureMessage>
  <SuccessMessage>sample String 4</SuccessMessage>
  <RuleId>5</RuleId>
  <RuleTypeId>6</RuleTypeId>
</Rule>