Delete Custom Model

GET/PATCH/DELETE /llm_models/model/<pk>/ (platform - uses pk) GET/PATCH/DELETE /api/models/<path:model_name>/ (public API - uses model_name) Unified endpoint for any model (global or custom). Lookup field determined by URL kwargs: - If 'pk' in kwargs: Uses pk lookup - If 'model_name' in kwargs: Uses model_name lookup GET: Retrieve model (public for global, org auth for custom) PATCH: Update model (admin for global, org owner for custom) DELETE: Delete model (admin for global, org owner for custom) Permission logic: - Global model (organization_id is None): Admin required for write - Custom model (organization_id is set): Org ownership required for write

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

OR
AuthorizationBearer

Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.

Path parameters

model_namestringRequired