# Update saved AI provider

Retired: users can no longer bring their own AI provider. Always refused.

```http
PATCH https://hiresweep.com/api/openapi/ai-providers/{id}
x-api-key: YOUR_API_KEY
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes |  |

## Request body

```json
{
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "minLength": 1
    },
    "apiKey": {
      "type": "string",
      "minLength": 1
    },
    "enabled": {
      "type": "boolean"
    }
  }
}
```

## Responses

- `200`: OK
- `400`: 400
- `404`: 404
- `412`: 412
