API ReferenceAdmin Model API

Bulk enable or disable provider models

Enables or disables provider models with flexible patterns: enable all, disable all, enable all except, or disable all except. Optionally filter by provider.

POST
/v1/admin/models/provider-models/bulk-toggle
Authorization<token>

Type "Bearer" followed by a space and JWT token.

In: header

Bulk toggle payload with enable flag, optional provider filter, and exception list

enableboolean

Required: true to enable, false to disable

except_models?array<string>

List of model keys to exclude

provider_id?string

Optional: filter by provider

Length1 <= length

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/v1/admin/models/provider-models/bulk-toggle" \  -H "Content-Type: application/json" \  -d '{    "enable": true  }'
{
  "failed_count": 0,
  "failed_models": [
    "string"
  ],
  "skipped_count": 0,
  "total_checked": 0,
  "updated_count": 0
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}
{
  "code": "string",
  "error": "string",
  "message": "string",
  "request_id": "string"
}