# Change the agent name or the rate

`PATCH /ai/admin/sites/{site}/keys/{key}` · Praecise Shield for AI · Guard keys

Change the agent name or the rate.

## Parameters

- `site` (path, required), string: The site id (ai_…).
- `key` (path, required), string: The guard key's id (k_…), not the key.

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "agent": {
      "type": "string",
      "description": ""
    },
    "ratePerMinute": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": []
}
```

## Responses

- `200`: OK

## Example

```sh
curl -X PATCH 'https://shield-ai.praecise.com/ai/admin/sites/{site}/keys/{key}' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "agent": "string",
  "ratePerMinute": 0
}'
```
