---
updatedAt: 2026-07-06T22:28:57.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further.

# 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](ref:post-org-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>


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core platform - Rule models",
    "description": "Manage rule models",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    },
    "version": "1.37.0"
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/processing-code",
      "description": "Sandbox API server for testing"
    }
  ],
  "tags": [
    {
      "name": "Model list",
      "description": "Endpoints for model list management."
    }
  ],
  "components": {
    "schemas": {
      "BadRequestError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "PC0001",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "example": "Invalid request payload",
            "description": "Error message"
          }
        }
      },
      "InternalServerError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "PC0002",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "example": "An unexpected error happened.",
            "description": "Error message"
          }
        }
      },
      "ModelListCreationRequest": {
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ModelListData"
          }
        }
      },
      "ModelListData": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "List of values used to evaluate the rule condition.",
        "example": [
          "MERCHANT 1",
          "MERCHANT 2"
        ]
      },
      "ModelListResponse": {
        "properties": {
          "id": {
            "type": "string",
            "example": "b3f53d8f-6812-4869-b17a-874d78750cc6",
            "description": "The ID generated for the new model list."
          }
        }
      }
    },
    "responses": {
      "400BadRequest": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BadRequestError"
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InternalServerError"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/models/list": {
      "post": {
        "summary": "Create model list",
        "description": "Create data for a rule model to evaluate.\n\nA 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](https://developers.pismo.io/pismo-docs/reference/post-org-rule-model).\n\nFor 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:\n<pre>\n...\n  {\n    \"type\": \"MERCHANT_NAME_LIST\",\n    \"operator\": \"contains\",\n    \"data\": \"15bda43f-5f6d-4681-8c09-853de8b9479d\"  ## Model list ID\n  }\n...\n</pre>\n",
        "operationId": "post-org-model-list",
        "tags": [
          "Model list"
        ],
        "requestBody": {
          "description": "Parameters to create a new model list",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelListCreationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelListResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400BadRequest"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```