---
title: "admUpdateFilter"
canonical: "https://support.appfire.com/space/PSJC/722141349/admUpdateFilter"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Updates a filter.

Updates a filter. Returns the updated JFilter structure. Owner cannot be changed

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admUpdateFilter(filter) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | [use adm; updateFilter(filter);] |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| filter | JFilter | Yes | The filter to be updated |

## Return Type

**[JFilter](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

## Example

```javascript
JFilter f = admGetFilterById(10017);
f.description = "Modified description";
    f.name="anothername";admUpdateFilter(f);
```

Returns the JFilter object, if correctly updated.

## See also

> Macro (contentbylabel)