> ## 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_failed

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

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

## What happened

Precondition failed. For example: The ETag sent with the request (If-Match, or an etag in the mergeSegments body) is stale.

## What to do

Re-read the resource, re-apply your change to it and retry with its current ETag.

`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_failed",
  "title": "Precondition failed",
  "status": 412,
  "detail": "The ETag sent with the request (If-Match, or an etag in the mergeSegments body) is stale.",
  "instance": "urn:uuid:7d5c0e9a-3f1b-4c2e-9a8d-6b4f2e1c0d93",
  "code": "precondition_failed",
  "retryable": false,
  "retry": "none",
  "recommendation": "fix_request",
  "hint": "Re-read the resource, re-apply your change to it and retry with its current ETag.",
  "errors": [],
  "current_etag": "\"s-a417e9824d09b346\""
}
```

## Operations that return it

* [deleteSegment](https://docs.api.rask.ai/operations/deleteSegment.md)
* [mergeSegments](https://docs.api.rask.ai/operations/mergeSegments.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)
* [updateTranslationSettings](https://docs.api.rask.ai/operations/updateTranslationSettings.md)


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