# Set mic PTT shortcut

- **Method:** `PUT`
- **Path:** `/api/v1/settings/mic-ptt-shortcut`
- **Operation ID:** `set_mic_ptt_shortcut_setting_api_v1_settings_mic_ptt_shortcut_put`
- **Tags:** Settings

Set the mic PTT shortcut. Rejects values outside the allowed dropdown set.

## Effective servers

- `http://127.0.0.1:8100`

  Voice Creator Pro on this computer

## Query parameters

- **`modifier` (required)**: `string`

  PTT modifier ('Alt' or 'Ctrl')
- **`key` (required)**: `string`

  PTT key

## Responses

### 200 Successful Response

**Content type:** `application/json`

schema: `MicPttShortcutSetResponse`

- **`changed` (required)**: `boolean`

  True if either modifier or key changed
- **`success` (required)**: `boolean`

  True on 200

**Example:**

```json
{
  "success": true,
  "changed": true
}
```

### 422 Validation Error

**Content type:** `application/json`

schema: `HTTPValidationError`

- **`detail`**: `array`

  **Items:**

  schema: `ValidationError`
  - **`loc` (required)**: `array of (string | integer)`
  - **`msg` (required)**: `string`
  - **`type` (required)**: `string`
  - **`ctx`**: `object`
  - **`input`**: `any`

**Example:**

```json
{
  "detail": [
    {
      "loc": [
        ""
      ],
      "msg": "",
      "type": "",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Schemas

- `HTTPValidationError` — shown above.
- `MicPttShortcutSetResponse` — shown above.
- `ValidationError` — shown above.
