# Language review decide

`POST /language/reviews/{id}/decision` · Rivier · language

Approve a waiting string, write its correction (which must pass the check) or reject it. A person only.

- Scope: language:write
- Graphql: Mutation.languageReviewDecide
- Sdk: language.review.decide
- Cli: language review decide

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "decision": {
      "type": "string",
      "enum": [
        "approve",
        "correct",
        "reject"
      ]
    },
    "text": {
      "type": "string",
      "maxLength": 5000
    },
    "note": {
      "type": "string",
      "maxLength": 500
    }
  },
  "required": [
    "decision"
  ],
  "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/language/reviews/{id}/decision' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "decision": "approve"
}'
```
