API ReferenceAdmin Model API
Bulk enable/disable provider models by catalog IDs or all catalogs
Enable or disable provider models for specific catalogs or ALL catalogs, with optional exception list. Supports "enable/disable all except" patterns globally or scoped to catalogs.
Authorization<token>
Type "Bearer" followed by a space and JWT token.
In: header
Bulk toggle request. If catalog_ids is empty, applies to ALL catalogs. Use except_models to exclude specific models.
catalog_ids?array<string>
Optional: specific catalog public IDs. If empty, applies to all catalogs
enableboolean
Required: true to enable, false to disable
except_models?array<string>
List of model keys to exclude from the operation
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/admin/models/catalogs/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"
}{
"code": "string",
"error": "string",
"message": "string",
"request_id": "string"
}