---
title: "PATCH /api/ai-providers/models/{model_id}/"
method: PATCH
path: "/api/ai-providers/models/{model_id}/"
tags: ["AI providers"]
---

# PATCH /api/ai-providers/models/{model_id}/

`PATCH /api/ai-providers/models/{model_id}/`

## Path parameters

- `model_id` integer, required

## Request body

- PatchedAIProviderModelUpdate
  - `model_identifier` string
  - `is_enabled` boolean

## Response `200`

- AIProviderModel
  - `id` integer, required
  - `model_identifier` string, required
  - `is_enabled` boolean
  - `last_test_at` string, date-time, nullable, required
  - `last_test_status` union, required
    - 'success' | 'failure' — * `success` - Success * `failure` - Failure
    - unknown
  - `last_test_error` string, required

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
