model management

Block Model

Block a DB-stored model deployment from serving requests.

Parameters:

  • model_id: str - The model deployment id to block.
post/model/block

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/model/block
  • Auth: API key in header x-litellm-api-key

Headers

litellm-changed-bystring nullable

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

Request body

model_idstring required

Response

Successful Response

model_idstring required
model_namestring required
litellm_paramsobject required
model_infoobject nullable
blockedboolean
created_atstring date-time nullable
created_bystring nullable
updated_atstring date-time nullable
updated_bystring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.