## Update a list `rules.lists.update(strlist_id, ListUpdateParams**kwargs) -> ListUpdateResponse` **put** `/accounts/{account_id}/rules/lists/{list_id}` Updates the description of a list. ### Parameters - `account_id: str` The Account ID for this resource. - `list_id: str` The unique ID of the list. - `description: Optional[str]` An informative summary of the list. ### Returns - `class ListUpdateResponse: …` - `id: str` The unique ID of the list. - `created_on: str` The RFC 3339 timestamp of when the list was created. - `kind: Literal["ip", "redirect", "hostname", "asn"]` The type of the list. Each type supports specific list items (IP addresses, ASNs, hostnames or redirects). - `"ip"` - `"redirect"` - `"hostname"` - `"asn"` - `modified_on: str` The RFC 3339 timestamp of when the list was last modified. - `name: str` An informative name for the list. Use this name in filter and rule expressions. - `num_items: float` The number of items in the list. - `num_referencing_filters: float` The number of [filters](/api/resources/filters/) referencing the list. - `description: Optional[str]` An informative summary of the list. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) list = client.rules.lists.update( list_id="2c0fc9fa937b11eaa1b71c4d701ab86e", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(list.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "id": "2c0fc9fa937b11eaa1b71c4d701ab86e", "created_on": "2020-01-01T08:00:00Z", "kind": "ip", "modified_on": "2020-01-10T14:00:00Z", "name": "list1", "num_items": 10, "num_referencing_filters": 2, "description": "This is a note" }, "success": true } ```