# setPassFreeLimitAmount

Call the **setPassFreeLimitAmount** API to set the pass free limit amount, which is the _amountLevel_ parameter in the request parameter of the **init** API.

# Method signature

```java
void setPassFreeLimitAmount(@NotNull String amountLevelKey, @Nullable ACResultCallback<Boolean> callback);
```

# Request parameters

| **Item** | **Type** | **Description** | **Required** |
| --- | --- | --- | --- |
| amountLevelKey | String | The key value for the pass free limit amount. > **Note**: The key value passed by the MPP must be consistent with the key preset by the server, otherwise the request to the server will fail. | Required |
| callback | [ACResultCallback](ac_result_callback)<Boolean> | The callback for updating the pass free limit amount. Valid values are: - `true`: Successfully updated the pass free limit amount. - `false`: Failed to update the pass free limit amount, and the pass free limit amount remains the same as before the user's change. | Optional |

# Response parameters

N/A

# Sample

```kotlin
ACTapManager.getInstance(this.getApplication()).setPassFreeLimitAmount(amountLevelKey, callback)
```