---
title: "Create model list"
method: POST
path: "/v1/models/list"
tags: ["Model list"]
---

# Create model list

`POST /v1/models/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](https://developers.pismo.io/pismo-docs/reference/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>

## Request body

- ModelListCreationRequest
  - `data` string[], required — List of values used to evaluate the rule condition.

## Response `201`

Created

- ModelListResponse
  - `id` string — The ID generated for the new model list.

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/pismo/apis/platform-authentication.md) · [All operations](https://skmtc.net/pismo/apis/platform-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pismo/platform-authentication/revisions/935b62e16de4/schema)
