---
title: Editing a variable
description: Edit an existing variable to change its properties.
component: davinci
page_id: davinci:variables:davinci_editing_a_variable
canonical_url: http://docs.pingidentity.com/davinci/variables/davinci_editing_a_variable.html
revdate: July 31, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
---

# Editing a variable

Edit an existing variable to change its properties.

## About this task

|   |                                                        |
| - | ------------------------------------------------------ |
|   | You cannot change the name and context for a variable. |

## Steps

1. Click the **Variables** tab.

2. Find the variable you want to edit and click the **Pencil** icon.

3. (Optional) In the **Description** field, update the description for the variable.

4. (Optional) In the **Data Type** list, select a data type:

   ### Choose from:

   * **String**

   * **Boolean**

   * **Number**

   * **Object**

   * **Secret**

     |   |                                                                                                   |
     | - | ------------------------------------------------------------------------------------------------- |
     |   | If you change a variable's data type from **Secret** to another type, the existing value is lost. |

5. (Optional) In the **Value** field, enter a value for the variable.

   For flows with the **Company Context**, this field updates the current value. For all other contexts, this field sets the initial value.

   If the variable's data type is **Secret**, the existing value can only be replaced. It cannot be edited or viewed.

6. (Optional) Click the **Mutable** toggle to allow nodes within a flow to change the value of the variable.

7. (Optional) In the **Min** field, enter a minimum value for the variable.

8. (Optional) In the **Max** field, enter a maximum value for the variable.

9. Click **Update**.
