---
updatedAt: 2026-04-23T05:40:30.000Z
---

# Updates a user list

Updates a user list with the specified details. When parameters are replaced they are validated like on create: unknown rule ids and saved lists outside your organization return 422.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "API V1",
    "version": "v1"
  },
  "paths": {
    "/user_lists/{id}": {
      "put": {
        "summary": "Updates a user list",
        "tags": [
          "User Lists"
        ],
        "description": "Updates a user list with the specified details. When parameters are replaced they are validated like on create: unknown rule ids and saved lists outside your organization return 422.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Identifier of the user list to update",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "user list updated"
          },
          "404": {
            "description": "user list not found"
          },
          "422": {
            "description": "unprocessable entity"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Name of the user list",
                    "nullable": false
                  },
                  "scope_id": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Identifier for the scope",
                    "nullable": false
                  },
                  "scope_type": {
                    "type": "string",
                    "description": "Type of the scope",
                    "nullable": false,
                    "enum": [
                      "Organization",
                      "Chapter"
                    ]
                  },
                  "parameters": {
                    "type": "object",
                    "description": "Parameters for filtering users in QueryBuilder format",
                    "properties": {
                      "condition": {
                        "type": "string",
                        "enum": [
                          "AND",
                          "OR"
                        ],
                        "description": "Top-level condition for the rules"
                      },
                      "valid": {
                        "type": "boolean",
                        "description": "Indicates if the rule set is valid"
                      },
                      "rules": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "description": "Field identifier"
                            },
                            "type": {
                              "type": "string",
                              "description": "Data type of the field"
                            },
                            "operator": {
                              "type": "string",
                              "description": "Comparison operator"
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "array",
                                  "items": {
                                    "oneOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "boolean"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "description": "Value or values to compare against"
                            }
                          }
                        }
                      }
                    }
                  },
                  "event_id": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Identifier for the associated event, if applicable",
                    "nullable": true
                  }
                }
              }
            }
          },
          "required": true,
          "description": "Data containing user list information"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.solidarity.tech/v1",
      "variables": {
        "defaultHost": {
          "default": "api.solidarity.tech/v1"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```