v1

latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MB
Model list

Create model list

Create data for a rule model to evaluate.

A model list contains values to evaluate in a rule model. To use the list, pass its ID as a data field's value in a condition when you create a rule model.

For example, you can create a model list to capture purchases made through designated merchants with the MERCHANT_NAME_LIST condition type. The list could look like this: ["APPLE", "MICROSOFT", "BEST BUY"], and be used like this:

<pre> ... { "type": "MERCHANT_NAME_LIST", "operator": "contains", "data": "15bda43f-5f6d-4681-8c09-853de8b9479d" ## Model list ID } ... </pre>
post/v1/models/list

Request body

datastring[] required

List of values used to evaluate the rule condition.

Example request

{
  "data": [
    "MERCHANT 1",
    "MERCHANT 2"
  ]
}

Response

Created

idstring

The ID generated for the new model list.

Example response

{
  "id": "b3f53d8f-6812-4869-b17a-874d78750cc6"
}