Create Eligibility Rule

post

/rest/v16/eligibilityRule

This operation creates a new Eligibility Rule.

Request

Body ()
Root Schema : Eligibility Rule
Type: object
Title: Eligibility Rule
Show Source
Nested Schema : active
Type: object
Title: active
YES indicates Active and NO indicates Inactive
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Eligibility Rule Condition
Type: object
Title: Eligibility Rule Condition
Show Source
Nested Schema : conditionType
Type: object
Title: conditionType
Specifies whether condition is ALWAYS_TRUE or SIMPLE
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : ruleType
Type: object
Title: ruleType
Indicates whether AVAILABLE or NOT_AVAILABLE rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Eligibility Rule Selection
Type: object
Title: Eligibility Rule Selection
Show Source
Nested Schema : selectionType
Type: object
Title: selectionType
This field specifies whether selection is ALL, NONE or SIMPLE
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : items
Type: array
Show Source
Nested Schema : Eligibility Rule Condition
Type: object
Title: Eligibility Rule Condition
Show Source
Nested Schema : dataType
Type: object
Title: dataType
Indicates data type of attributeName
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : operator
Type: object
Title: operator
opearator for condition is stored in this field
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : ruleId
Type: object
Title: ruleId
Foreign key field
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Eligibility Rule Selection
Type: object
Title: Eligibility Rule Selection
Show Source
Nested Schema : dataType
Type: object
Title: dataType
Indicates data type of attributeName
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : operator
Type: object
Title: operator
Operator chosen for selection
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : ruleId
Type: object
Title: ruleId
Foreign key to rule table
Show Source
Back to Top

Response

Default Response

Body ()
Root Schema : Eligibility Rule
Type: object
Title: Eligibility Rule
Show Source
Nested Schema : active
Type: object
Title: active
YES indicates Active and NO indicates Inactive
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : eligibilityRuleCondition-collection
Type: object
Show Source
Nested Schema : conditionType
Type: object
Title: conditionType
Specifies whether condition is ALWAYS_TRUE or SIMPLE
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : ruleType
Type: object
Title: ruleType
Indicates whether AVAILABLE or NOT_AVAILABLE rule
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : eligibilityRuleSelection-collection
Type: object
Show Source
Nested Schema : selectionType
Type: object
Title: selectionType
This field specifies whether selection is ALL, NONE or SIMPLE
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : items
Type: array
Show Source
Nested Schema : Eligibility Rule Condition
Type: object
Title: Eligibility Rule Condition
Show Source
Nested Schema : dataType
Type: object
Title: dataType
Indicates data type of attributeName
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : operator
Type: object
Title: operator
opearator for condition is stored in this field
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : ruleId
Type: object
Title: ruleId
Foreign key field
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Eligibility Rule Selection
Type: object
Title: Eligibility Rule Selection
Show Source
Nested Schema : dataType
Type: object
Title: dataType
Indicates data type of attributeName
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : operator
Type: object
Title: operator
Operator chosen for selection
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : ruleId
Type: object
Title: ruleId
Foreign key to rule table
Show Source
Back to Top

Examples

The following example shows how to create an Eligibility Rules by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/eligibilityRule

Request Body Sample

{
  "startDate": "2021-03-18",
  "variableName": "testEligibilityRule",
  "selectionRowGrouping": "1",
  "conditionType": {
    "lookupCode": "1"
  },
  "endDate": "2017-08-01",
  "conditionRowGrouping": "1",
  "description": null,
  "name": "Test Eligibility Rule",
  "ruleType": {
    "lookupCode": "1"
  },
  "selectionType": {
    "lookupCode": "2"
  },
  "active": {
    "lookupCode": "1"
  },
  "condition": {
    "items": [{
        "attributeName": "/process/oraclecpqo/_main_doc/transaction/numOfRecords",
        "dataType": {
          "lookupCode": "3"
        },
        "value": null,
        "operator": {
          "lookupCode": "1"
        },
        "ruleConditionIndex": 1
      }
    ]
  },
  "selection": {
    "items": [{
        "dataType": {
          "lookupCode": "2"
        },
        "value": "1",
        "ruleSelectionIndex": 1,
        "partField": "/part/_custom_attr/field13",
        "operator": {
          "lookupCode": "1"
        }
      }
    ]
  }
}

Response Body Sample

{
  "startDate": "2021-03-18",
  "dateModified": "2021-03-16T10:56:11.655Z",
  "variableName": "testEligibilityRule",
  "selectionRowGrouping": "1",
  "conditionType": {
    "lookupCode": "1",
    "displayValue": "Simple",
    "id": 20471574,
    "links": [{
        "rel": "domain",
        "href": "https://sitename.oracle.com/rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_COND_TYPE%22%7D%7D"
      }, {
        "rel": "canonical",
        "href": "https://sitename.oracle.com//rest/v16/lookupValues/20471574"
      }
    ]
  },
  "processName": "oraclecpqo",
  "dateAdded": "2013-03-18T10:56:11.655Z",
  "endDate": "2021-08-01",
  "id": 20510770,
  "conditionRowGrouping": "1",
  "isRuleChanged": true,
  "description": null,
  "name": "Test Eligibility Rule",
  "isRuleInvalid": false,
  "ruleType": {
    "lookupCode": "1",
    "displayValue": "Not Available",
    "id": 20383423,
    "links": [{
        "rel": "domain",
        "href": "https://sitename.oracle.com//rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_TYPE%22%7D%7D"
      }, {
        "rel": "canonical",
        "href": "https://sitename.oracle.com//rest/v16/lookupValues/20383423"
      }
    ]
  },
  "lastDeployedDate": null,
  "selectionType": {
    "lookupCode": "2",
    "displayValue": "Simple",
    "id": 20471577,
    "links": [{
        "rel": "domain",
        "href": "https://sitename.oracle.com//rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_SEL_TYPE%22%7D%7D"
      }, {
        "rel": "canonical",
        "href": "https://sitename.oracle.com//rest/v16/lookupValues/20471577"
      }
    ]
  },
  "active": {
    "lookupCode": "1",
    "displayValue": "Yes",
    "id": 20383422,
    "links": [{
        "rel": "domain",
        "href": "https://sitename.oracle.com//rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_ACTIVE_CODE%22%7D%7D"
      }, {
        "rel": "canonical",
        "href": "https://sitename.oracle.com//rest/v16/lookupValues/20383422"
      }
    ]
  },
  "condition": {
    "hasMore": false,
    "items": [{
        "dateModified": "2018-03-18T10:56:11.657Z",
        "dateAdded": "2018-03-18T10:56:11.657Z",
        "operator": {
          "lookupCode": "1",
          "displayValue": "Equal",
          "id": 20471586,
          "links": [{
              "rel": "domain",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_OPERATOR_TYPE%22%7D%7D"
            }, {
              "rel": "canonical",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues/20471586"
            }
          ]
        },
        "attributeName": "/process/oraclecpqo/_main_doc/transaction/numOfRecords",
        "id": 20510771,
        "dataType": {
          "lookupCode": "3",
          "displayValue": "Single Select Menu",
          "id": 20471581,
          "links": [{
              "rel": "domain",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_DATA_TYPE%22%7D%7D"
            }, {
              "rel": "canonical",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues/20471581"
            }
          ]
        },
        "ruleId": {
          "id": 20510770,
          "variableName": "testEligibilityRule",
          "links": [{
              "rel": "domain",
              "href": "https://sitename.oracle.com//rest/v16/eligibilityRule"
            }, {
              "rel": "canonical",
              "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770"
            }
          ]
        },
        "value": null,
        "ruleConditionIndex": 1,
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770/condition/20510771"
          }, {
            "rel": "parent",
            "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770"
          }
        ]
      }
    ],
    "links": [{
        "rel": "self",
        "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770/condition"
      }
    ]
  },
  "selection": {
    "hasMore": false,
    "items": [{
        "dateModified": "2021-03-18T10:56:11.658Z",
        "dateAdded": "2021-03-18T10:56:11.658Z",
        "partField": "/part/_custom_attr/field13",
        "operator": {
          "lookupCode": "1",
          "displayValue": "Equal",
          "id": 20471586,
          "links": [{
              "rel": "domain",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_OPERATOR_TYPE%22%7D%7D"
            }, {
              "rel": "canonical",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues/20471586"
            }
          ]
        },
        "id": 20510772,
        "dataType": {
          "lookupCode": "2",
          "displayValue": "Text",
          "id": 20471580,
          "links": [{
              "rel": "domain",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_DATA_TYPE%22%7D%7D"
            }, {
              "rel": "canonical",
              "href": "https://sitename.oracle.com//rest/v16/lookupValues/20471580"
            }
          ]
        },
        "ruleId": {
          "id": 20510770,
          "variableName": "test",
          "links": [{
              "rel": "domain",
              "href": "https://sitename.oracle.com//rest/v16/eligibilityRule"
            }, {
              "rel": "canonical",
              "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770"
            }
          ]
        },
        "value": "1",
        "ruleSelectionIndex": 1,
        "links": [{
            "rel": "self",
            "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770/selection/20510772"
          }, {
            "rel": "parent",
            "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770"
          }
        ]
      }
    ],
    "links": [{
        "rel": "self",
        "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770/selection"
      }
    ]
  },
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com//rest/v16/eligibilityRule/20510770"
    }
  ]
}
Back to Top