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

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

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

Changed in 1 of the 42 revisions of this API.1