---
title: Modify Query
description: Use modify-query to modify the query string of the request sent to the API server.
component: pingauthorize
version: 9.3
page_id: pingauthorize:pingauthorize_policy_administration_guide:paz_modify_query
canonical_url: https://docs.pingidentity.com/pingauthorize/9.3/pingauthorize_policy_administration_guide/paz_modify_query.html
revdate: June 30, 2023
---

# Modify Query

Use `modify-query` to modify the query string of the request sent to the API server.

| Description            | Details                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Applicable to          | All                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Additional information | The payload for this statement is a JSON object. The keys are the names of the query parameters that must be modified, and the values are the new values of the parameters. A value can be one of the following options:- `null`

  The query parameter is removed from the request.

- String

  The parameter is set to that specific value.

- Array of strings

  The parameter is set to all of the values in the array.If the query parameter already exists on the request, it is overwritten. If the query parameter does not already exist, it is added. For example, consider the following request made to a proxied API:```shell
curl --location --request GET '{{apiPath}}/directory/v1/{{dn}}/subtree?searchScope=wholeSubtree&limit=1000' \
--header 'Authorization: Bearer {{jwtToken}}'
```You can set a policy to limit certain groups of users to request only 20 users at a time. A payload of `\{"limit": 20}` causes the request to be rewritten as follows:```shell
curl --location --request GET '{{apiPath}}/directory/v1/{{dn}}/subtree?searchScope=wholeSubtree&limit=20' \
--header 'Authorization: Bearer {{jwtToken}}'
``` |
