# 5539 Editing Policy Parameters at Runtime

Editing Policy Parameters at Runtime

This feature allows modifying policy parameters after the policy has been published. The first step is to define which parameters can be modified. For this purpose, an additional button has been added to the Policy Configurator

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

Clicking this button opens a new dialog containing dynamic groups of properties, where any number of properties can be added and each property can be configured using 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 this property, while Apply for specifies the roles to which these changes will apply. The Label and Short Description appear on the form where policy parameters can be modified at runtime.

After configuring the policy parameters and publishing the policy, a new Parameter Settings button has been added to the policy.

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

These settings contain the parameters that were 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 the current 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 a new text is added to this property, it is displayed on this page

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

Endpoints for this feature

1. Retrieving the policy parameter configuration

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

2. Saving Policy Parameters

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


---

# 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/docs/develop/guardian/standard-registry/guardian-3.6-features-and-enhancements/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.
