# prov.mandate.grants.set_over_limit_settings

prov.mandate.grants.set_over_limit_settings in Python SDK. Change the settings for the locks given (an admin key); a grant's own `over_limit` still comes first.

## Signature

```python
prov.mandate.grants.set_over_limit_settings(over_limit: Optional[dict] = …, require_same_person: Optional[bool] = …, at_verify: Optional[str] = …, require_holder_proof: Optional[bool] = …, external: Optional[str] = …, external_online_above: Optional[float] = …) -> Any
```

## Parameters

- `over_limit` (Optional[dict], optional)
- `require_same_person` (Optional[bool], optional)
- `at_verify` (Optional[str], optional)
- `require_holder_proof` (Optional[bool], optional)
- `external` (Optional[str], optional)
- `external_online_above` (Optional[float], optional)

## Returns

`Any`

## HTTP operation

[`PUT /v1/mandate/settings/delegation`](https://provenanceauth.com/docs/api/grants.md#put-v1-mandate-settings-delegation): Set the over-limit settings

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/settings/delegation`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "over_limit": {
      "budget": {
        "action": "ask",
        "refuse_over": {
          "percent": 10
        }
      }
    },
    "require_same_person": true
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/mandate/settings/delegation", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "over_limit": {
        "budget": {
            "action": "ask",
            "refuse_over": {
                "percent": 10
            }
        }
    },
    "require_same_person": True
}).json()
```
