# Editing Policy Parameters at Runtime

## Editing policy parameters at runtime

This feature lets you modify policy parameters after the policy has been published. First, define which parameters can be edited. To do that, use the new button in the Policy Configurator.

<figure><img src="/files/gfkY0tOVzvBjDJJL6YJd" alt=""><figcaption></figcaption></figure>

Clicking this button opens a new dialog with dynamic property groups. You can add any number of properties. Each property includes the following fields: **Block**, **Property**, **Visible**, **Apply for**, **Label**, and **Description**.

<figure><img src="/files/eWh23syGNBhfmxbgKsS3" alt=""><figcaption></figcaption></figure>

The **Blocks** dropdown contains only blocks from the current policy that have at least one editable property. The **Visible** field determines who can modify the property. **Apply for** specifies the roles that receive the change. **Label** and **Short Description** appear in the runtime form for editing policy parameters.

After you configure the policy parameters and publish the policy, a new **Parameter Settings** button appears on the policy.

<figure><img src="/files/iHMIYlhOpTYgOUgy9rKy" alt=""><figcaption></figcaption></figure>

These settings include the parameters configured in the Policy Configurator. Values for editable parameters are stored in a new database table: `policy_parameters`.

<figure><img src="/files/akxA7n2GtXIKUDRHHFHO" alt=""><figcaption></figcaption></figure>

If some parameters are marked as required, this form opens automatically when the user opens the policy.

<figure><img src="/files/29tqQBJrVyHTFaPGG98Z" alt=""><figcaption></figcaption></figure>

In this example, the **Information** block can be modified. Before the changes are applied, the text configured in the corresponding property is displayed.

<figure><img src="/files/yruzUDUCB94CMXMp2mKY" alt=""><figcaption></figcaption></figure>

After you add new text to this property, it appears on the page.

<figure><img src="/files/CzWvdR7Gw4pprHmjM85t" alt=""><figcaption></figcaption></figure>

## Endpoints for this feature

1. Retrieve the policy parameter configuration.

```
GET 
/:policyId/parameters/config
```

2. Save policy parameters.

```
POST 
/:policyId/parameters 
[{ 
  blockType: string; 
  blockTag: string; 
  propertyPath: string; 
  visible: string[]; 
  applyTo: string[]; 
  label: string; 
  required: boolean; 
  shortDescription: string; 
  value?: any; 
}]
```

## Related Issues

* [https://github.com/hashgraph/guardian/issues/5539](https://github.com/hashgraph/guardian/issues/1987)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guardian.hedera.com/guardian/standard-registry/policies/5539-editing-policy-parameters-at-runtime.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
