> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.taigabilling.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.taigabilling.com/_mcp/server.

# Pre Encounter Images V 1 Deactivate

DELETE https://api.taigabilling.com/images/v1/{id}/{version}

Sets an Image as deactivated. The path must contain the version being written, which is the object's current version plus 1 (a create returns version 0, so the first deactivate uses 1). Sending the current version returns 409 Version conflict.

Reference: https://docs.taigabilling.com/api-reference/pre-encounter-images-v-1/pre-encounter-images-v-1-deactivate

## Authentication

- `Authorization` header (bearer token, required) — Send your Taiga API key as a Bearer token. Create and manage keys in the Taiga developer portal.

## Servers

- `https://api.taigabilling.com` (Production, default)
- `https://api-staging.taigabilling.com` (Staging)

## Request

### Path parameters

- `id` (string, required) — The unique identifier for an Image
- `version` (string, required)

## Errors

### 404 Not Found Error

- `PreEncounter_images_v1_deactivateRequestNotFoundError`
  - PreEncounterImagesV1DeactivateRequestNotFoundError0

### 409 Conflict Error

- `PreEncounter_images_v1_deactivateRequestConflictError`
  - PreEncounterImagesV1DeactivateRequestConflictError0

## Types

### PreEncounterImagesV1DeactivateRequestNotFoundError0

- `errorName` (enum, optional)
  - Allowed values: `VersionConflictError`
- `content` (pre-encounterErrorBase4xx, optional)

### PreEncounterImagesV1DeactivateRequestConflictError0

- `errorName` (enum, optional)
  - Allowed values: `VersionConflictError`
- `content` (pre-encounterVersionConflictErrorBody, optional)

### pre-encounterErrorBase4xx

- `message` (string, required)
- `data` (any, optional, nullable)

### pre-encounterVersionConflictErrorBody

- `message` (string, required)
- `data` (any, optional, nullable)
- `latest_version` (integer, optional, nullable)

## Examples

**SDK Code**

```python
import requests

url = "https://api.taigabilling.com/images/v1/id/version"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.json())
```