---
title: "Api Load Balance Model Partial Update"
method: PATCH
path: "/api/load-balance-model/{id}/"
tags: ["integrations"]
---

# Api Load Balance Model Partial Update

`PATCH /api/load-balance-model/{id}/`

View mixin that handles both JWT and API Key authentication.

Inherits from JWTAuthUtils:
- is_jwt_auth(request): Post-auth check (reliable, uses DRF's successful_authenticator)
- is_jwt_token_format(request): Pre-auth heuristic (used here to route authenticators)

This mixin uses is_jwt_token_format() (pre-auth) in get_authenticators() and get_permissions()
because those methods run BEFORE authentication completes. For post-auth checks,
use is_jwt_auth() instead.

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string, required

## Request body

- PatchedLoadBalanceModelUpdateRequest
  - `credentials` PatchedLoadBalanceModelUpdateRequestCredentials
  - `model` string
  - `weight` number, double
  - `is_active` boolean
  - `name` string
  - `provider` integer, nullable
  - `group` integer, nullable

## Response `200`

- LoadBalanceModelUpdate
  - `id` integer, required
  - `masked_credentials` string, required
  - `model` string, required
  - `weight` number, double
  - `is_active` boolean
  - `name` string
  - `provider` integer, nullable
  - `group` integer, nullable

---

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