---
title: DynsetExpression type | Wartiva GraphQL API
description: Dynset represents an nftables dynamic set expression. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/dynset-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `DynsetExpression` type

Dynset represents an nftables dynamic set expression. Dynamic sets allow for adding, updating, or deleting elements from a set during packet processing, often used for creating dynamic blocklists or connection tracking.

## Fields

| Field Name | Description |
|---|---|
| `srcRegKey` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | Register holding the key to insert or update in the dynamic set. |
| `srcRegData` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | Register holding the data or value to insert or update in the dynamic set. |
| `setID` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | Numeric ID of the target set, unique to the current transaction. |
| `setName` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The human-readable name of the target set. |
| `operation` - [`DynsetOperation!`](https://wartiva.com/api-docs/types/dynset-operation.html) | The type of operation (add, update, delete) to perform on the dynamic set. |
| `timeout` - [`Duration!`](https://wartiva.com/api-docs/types/duration.html) | The duration after which a new element in the set will expire, if supported by the set. |
| `invert` - [`Boolean!`](https://wartiva.com/api-docs/types/boolean.html) | Whether to invert the match logic for this dynamic set operation. This can also enable expression mode for updates. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{
  "srcRegKey": "VERDICT",
  "srcRegData": "VERDICT",
  "setID": "1073741824",
  "setName": "abc123",
  "operation": "ADD",
  "timeout": "600000000",
  "invert": true
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
