# ck update filter

Updates an existing CAN Message Filter node in the current measurement setup.

## Synopsis

```text
ck update filter
    <FILTER_NAME_OR_ID>
    [--url <String>]
    [--api-key <String>]
    [--language <en|zh|ja>]
    [-n|--name <NODE_NAME>]
    [-s|--std-ids <STANDARD_CAN_IDS>]
    [-x|--ext-ids <EXTENDED_CAN_IDS>]
    [-f|--filter-type <pass|block>]

ck update filter -h|--help
```

## Arguments

- ```FILTER_NAME_OR_ID```  
The name or identifier of the CAN Message Filter node to update.

## Options

- ```--url```  
Specify the URL of the CanKingService if connecting to a remote host. Falls back to the CANKING_REMOTE_URL environment variable. If not specified, the command will connect to a local CanKingService instance.

- ```--api-key```  
API key required when connecting to a remote CanKingService instance. Falls back to the CANKING_REMOTE_API_KEY environment variable.

- ```--language```  
Specify the preferred language to be used in all output strings. Default value is English (en). Supported languages are English (en), Chinese (zh), and Japanese (ja).

- ```-n|--name```  
New name for the node.

- ```-s|--std-ids```  
The standard CAN IDs to be filtered. Example: "1,2,3,5-10" in order to filter IDs 1,2,3 and 5 to 10. Prefix IDs with 0x to indicate hex format.

- ```-x|--ext-ids```  
The extended CAN IDs to be filtered. Example: "1,2,3,5-10" in order to filter IDs 1,2,3 and 5 to 10. Prefix IDs with 0x to indicate hex format.

- ```-f|--filter-type```  
The filter type. Either block or pass CAN IDs through filter.

## Examples

```bash
ck update filter "CAN message filter" --std-ids "1,2,3"
ck update filter "CAN message filter" --ext-ids "0x100-0x200" --filter-type block
ck update filter 2073f340-b9d7-a55c-cc18-b4e1c43dfc2f --name "My Filter"
```

