---
title: "Block Model"
method: POST
path: "/model/block"
tags: ["model management"]
---

# Block Model

`POST /model/block`

Block a DB-stored model deployment from serving requests.

Parameters:
- model_id: str - The model deployment id to block.

## Headers

- `litellm-changed-by` string, 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

- BlockModelRequest
  - `model_id` string, required

## Response `200`

Successful Response

- LiteLLMProxyModelTable
  - `model_id` string, required
  - `model_name` string, required
  - `litellm_params` object, required
  - `model_info` object, nullable
  - `blocked` boolean
  - `created_at` string, date-time, nullable
  - `created_by` string, nullable
  - `updated_at` string, date-time, nullable
  - `updated_by` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `082b5fabd909` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/model/block/post.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/c71315002afa?raw)
