> This page is for version 0.10.
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo-helix/latest/llms.txt
> - 0.10: https://docs.nvidia.com/nemo-helix/v0.10/llms.txt
> - 0.9: https://docs.nvidia.com/nemo-helix/v0.9/llms.txt
> - 0.8: https://docs.nvidia.com/nemo-helix/v0.8/llms.txt
> - 0.7: https://docs.nvidia.com/nemo-helix/v0.7/llms.txt
> - 0.6: https://docs.nvidia.com/nemo-helix/v0.6/llms.txt
> - 0.5: https://docs.nvidia.com/nemo-helix/v0.5/llms.txt

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

# Update Adapter

PATCH http://localhost:8080/apis/models/v2/workspaces/{workspace}/models/{model_name}/adapters/{adapter}
Content-Type: application/json

Update Adapter deployment or description.

Reference: https://docs.nvidia.com/nemo-helix/documentation/reference/api-reference/models/update-model-adapter-apis-models-v-2-workspaces-workspace-models-model-name-adapters-adapter-patch

## Request

### Path parameters

- `workspace` (string, required)
- `model_name` (string, required)
- `adapter` (string, required)

### Body (application/json)

This endpoint expects an UpdateAdapterRequest.

- `description` (string, optional) — Optional description of the adapter
- `enabled` (boolean, optional) — Whether to make this adapter available for inference post training
- `fileset` (string, optional) — Updated fileset for the adapter. Either a fileset name or 'workspace/fileset_name'. A bare name is resolved in the request workspace (the platform default workspace is named 'default'). Each segment is 2-63 characters: lowercase letters, digits, hyphens, and temporarily @ . + _; no consecutive hyphens, and it cannot end with a hyphen.

## Response

### 200

Update adapter metadata

- `name` (string, required) — Name of the adapter. Name must be unique in the workspace for all Adapters and match the following regex: Allowed characters: letters (a-z, A-Z), digits (0-9), underscores, hyphens, and dots.
- `workspace` (string, required) — Workspace of the adapter. Allowed characters: letters (a-z, A-Z), digits (0-9), underscores, hyphens, and dots.
- `fileset` (string, required) — Fileset where the adapter files are stored. Either a fileset name or 'workspace/fileset_name'. A bare name is resolved in the request workspace (the platform default workspace is named 'default'). Each segment is 2-63 characters: lowercase letters, digits, hyphens, and temporarily @ . + _; no consecutive hyphens, and it cannot end with a hyphen.
- `finetuning_type` (enum, required) — Type of finetuning (LORA, P_TUNING, etc.)
  - Allowed values: `lora_merged`, `all_weights`, `last_layer`, `top_layers`, `gradual_unfreezing`, `bias_only`, `attention_only`, `lora`, `qlora`, `adalora`, `dora`, `lora_plus`, `prompt_tuning`, `prefix_tuning`, `p_tuning`, `p_tuning_v2`, `soft_prompt`, `ppo`, `dpo`, `cdpo`, `ipo`, `orpo`, `kto`, `rrhf`, `grpo`
- `description` (string, optional) — Optional description of the adapter
- `enabled` (boolean, optional, default: true) — Whether to make this adapter available for inference post training
- `lora_config` (Lora, optional) — Lora configuration specifics
- `model` (string, optional) — Parent model entity reference. A single name (2-63 characters) or 'workspace/model_name' where each segment is a valid name (lowercase, digits, hyphens, and temporarily @ . + _; no leading/trailing or consecutive hyphens). If one slash, both sides must be non-empty.
- `created_at` (datetime, optional)
- `updated_at` (datetime, optional)

## Errors

### 422 Unprocessable Entity Error

Request validation error, or a referenced resource such as the workspace does not exist

- `EntityWriteValidationErrorResponse`
  - HTTPValidationError: HTTPValidationError
  - EntityErrorResponse: EntityErrorResponse

## Types

### Lora

- `rank` (integer, required) — LoRA Rank
- `alpha` (integer, optional) — Alpha scaling used for this adapter

### HTTPValidationError

- `detail` (list of ValidationError, optional)

### EntityErrorResponse

Error returned when an entity write is rejected by the entity store.

- `detail` (string, required)
- `code` ("workspace_not_found", optional, nullable) — Set to workspace_not_found when the target workspace does not exist.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItems

- string
- integer

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "name": "lora-adapter-v1",
  "workspace": "string",
  "fileset": "string",
  "finetuning_type": "lora_merged",
  "description": "string",
  "enabled": true,
  "lora_config": {
    "rank": 1,
    "alpha": 1
  },
  "model": "string",
  "created_at": "2024-01-15T09:30:00Z",
  "updated_at": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "http://localhost:8080/apis/models/v2/workspaces/workspace/models/model_name/adapters/adapter"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'http://localhost:8080/apis/models/v2/workspaces/workspace/models/model_name/adapters/adapter';
const options = {method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```