> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.rask.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# precondition_required

> Precondition required: HTTP 428 from the Rask API v3. What it means, what to do and which operations return it.

| Status | `retry` | `recommendation` |
| - | - | - |
| 428 | `none` | `fix_request` |

## What happened

Precondition required. For example: This edit needs an If-Match header with the current ETag.

## What to do

Read the resource and send its ETag in If-Match.

`fix_request`: change the request or its inputs; sent unchanged it fails again.

`none`: do not retry the request unchanged.

## Example

```json theme={null}
{
  "type": "https://docs.api.rask.ai/errors/precondition_required",
  "title": "Precondition required",
  "status": 428,
  "detail": "This edit needs an If-Match header with the current ETag.",
  "instance": "urn:uuid:7d5c0e9a-3f1b-4c2e-9a8d-6b4f2e1c0d93",
  "code": "precondition_required",
  "retryable": false,
  "retry": "none",
  "recommendation": "fix_request",
  "hint": "Read the resource and send its ETag in If-Match.",
  "errors": []
}
```

## Operations that return it

* [deleteSegment](https://docs.api.rask.ai/operations/deleteSegment.md)
* [selectTranslationVariant](https://docs.api.rask.ai/operations/selectTranslationVariant.md)
* [splitSegment](https://docs.api.rask.ai/operations/splitSegment.md)
* [updateSegment](https://docs.api.rask.ai/operations/updateSegment.md)
* [updateSpeakerVoice](https://docs.api.rask.ai/operations/updateSpeakerVoice.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.