---
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.

# Update model list

Update the model list identified in the path, either adding new values or deleting values. 


# 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": {
    "parameters": {
      "ListIdPath": {
        "name": "listId",
        "description": "List ID",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string"
        },
        "example": "30db80ce-ca5e-41ed-b9b0-4a2ee5e02c7a"
      }
    },
    "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"
          }
        }
      },
      "ModelListData": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "List of values used to evaluate the rule condition.",
        "example": [
          "MERCHANT 1",
          "MERCHANT 2"
        ]
      },
      "ModelListPayload": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/ModelListType"
          },
          "data": {
            "$ref": "#/components/schemas/ModelListData"
          }
        }
      },
      "ModelListReplaceRequest": {
        "properties": {
          "append": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Values to add to the model list.",
            "example": [
              "VALUE 1",
              "VALUE 2"
            ]
          },
          "delete": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Values to remove from the model list.",
            "example": [
              "VALUE 3",
              "VALUE 4"
            ]
          }
        }
      },
      "ModelListType": {
        "type": "string",
        "example": "MERCHANT_NAME_LIST",
        "description": "List types and data formats allowed:\n    - `INSTALLMENT_NUMBER` - Integer values\n    - `PROCESSING_CODE` - Alphanumeric strings\n    - `ACCOUNT_TYPE` - Alphanumeric strings\n    - `ORIGIN`- Alphanumeric strings\n    - `DCC`-  Boolean values\n    - `DOMESTIC`-  Boolean values\n    - `MERCHANT_NAME_LIST` - Alphanumeric strings\n    - `INSTALLMENT_PLAN` - Alphanumeric strings\n    - `AMOUNT` - Numbers with or without decimal places\n    - `MERCHANT_CATEGORY_CODE` - Alphanumeric strings\n    - `REVERSAL_INDICATOR` - Boolean values\n    - `AUTHORIZATION_FLOW` - Either `PAYMENTS` or `NETWORK`\n    - `ORIGINAL_PROCESSING_CODE`- Original processing code or persisted authorization processing code\n    - `MTI` - Message Type Indicator (MTI) - a four-digit numeric field - ISO 8583 standard\n",
        "enum": [
          "INSTALLMENT_NUMBER",
          "PROCESSING_CODE",
          "ACCOUNT_TYPE",
          "ORIGIN",
          "DCC",
          "DOMESTIC",
          "MERCHANT_NAME_LIST",
          "INSTALLMENT_PLAN",
          "AMOUNT",
          "MERCHANT_CATEGORY_CODE",
          "REVERSAL_INDICATOR",
          "AUTHORIZATION_FLOW",
          "ORIGINAL_PROCESSING_CODE",
          "MTI"
        ]
      },
      "NotFoundError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "PC0004",
            "description": "Error code"
          },
          "message": {
            "type": "string",
            "example": "Validation error: Item not found.",
            "description": "Error message"
          }
        }
      }
    },
    "responses": {
      "400BadRequest": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BadRequestError"
            }
          }
        }
      },
      "404NotFound": {
        "description": "Not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/NotFoundError"
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "Internal server error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InternalServerError"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/models/list/{listId}": {
      "patch": {
        "tags": [
          "Model list"
        ],
        "summary": "Update model list",
        "description": "Update the model list identified in the path, either adding new values or deleting values. \n",
        "operationId": "patch-model-list",
        "parameters": [
          {
            "$ref": "#/components/parameters/ListIdPath"
          }
        ],
        "requestBody": {
          "description": "Parameters to update a given model list",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModelListReplaceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelListPayload"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/404NotFound"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```