# Approve or deny a request to go past an allowance

`POST /usage/limits/approvals/{id}/decide` · Rivier · usage

Approve or deny a request to go past an allowance. Approving lets that many more units through this period.

- Scope: usage:admin
- Graphql: Mutation.usageLimitApprovalDecide
- Sdk: usage.limitApproval.decide
- Cli: usage limit approval decide

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "approve": {
      "type": "boolean"
    },
    "granted": {
      "type": "integer",
      "minimum": 1
    }
  },
  "required": [
    "approve"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/usage/limits/approvals/{id}/decide' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "approve": false
}'
```
