---
updatedAt: 2026-04-20T19:33:24.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/property-mgr/llms.txt
---

# Set Variable behavior

The Set Variable behavior programmatically modifies the value of your variable. This behavior is part of the overall [variable support](https://techdocs.akamai.com/property-mgr/docs/var-ov) system in Property Manager that lets you create complex properties without calling your support representative to implement advanced metadata.

Once you create a variable, the Set Variable behavior lets you populate it with values derived from different data sources. For example, you can [extract](https://techdocs.akamai.com/property-mgr/docs/set-var-extraction) a value from an incoming request, [generate](https://techdocs.akamai.com/property-mgr/docs/set-var-generation) a random number, or specify your own [expression](https://techdocs.akamai.com/property-mgr/docs/set-var-exp). To further transform the value, use [operations](https://techdocs.akamai.com/property-mgr/docs/set-var-op).

To add a Set Variable behavior to a rule, see [Add a behavior](https://techdocs.akamai.com/property-mgr/docs/behs#add-a-behavior).

> 📘
>
> The Set Variable behavior is for [user-defined variables](https://techdocs.akamai.com/property-mgr/docs/user-defined-vars). You can achieve similar results for [built-in variables](https://techdocs.akamai.com/property-mgr/docs/built-vars) by matching directly on an object represented by a variable. For example, you can match directly on a path, so there is no need to match on `AK_PATH`.

# Sub pages

* [Set Variable: extraction](https://techdocs.akamai.com/property-mgr/docs/set-var-extraction.md)
* [Set Variable: generation](https://techdocs.akamai.com/property-mgr/docs/set-var-generation.md)
* [Set Variable: expression](https://techdocs.akamai.com/property-mgr/docs/set-var-exp.md)
* [Set Variable: operations](https://techdocs.akamai.com/property-mgr/docs/set-var-op.md)

# Sibling pages

* [Variables overview](https://techdocs.akamai.com/property-mgr/docs/var-ov.md)
* [User-defined variables](https://techdocs.akamai.com/property-mgr/docs/user-defined-vars.md)
* [Built-in variables](https://techdocs.akamai.com/property-mgr/docs/built-vars.md)
* [Use variables in a behavior](https://techdocs.akamai.com/property-mgr/docs/use-vars-beh.md)
* [Match on a variable](https://techdocs.akamai.com/property-mgr/docs/match-var.md)
* [Match on variable errors](https://techdocs.akamai.com/property-mgr/docs/match-var-err.md)
* [Test configurations with variables](https://techdocs.akamai.com/property-mgr/docs/test-configs-vars.md)