Bulk-replace the entire model catalogue
Models
Bulk-replace the entire model catalogue
Destructive. Deletes the entire models collection and inserts the provided list. Used by the platform Models page “Import” flow.
- Body must be
{ "models": [...] }(max 500 items). Each item must carry at leastmodel_idandtype. - Per-key cache (
global.models_cache) is fully invalidated. - Emits a
model.bulk_replacedaudit event. - Rate-limited: 5 calls per 3600 seconds per consumer
(
ModelsBulkReplace).
PUT
Bulk-replace the entire model catalogue
Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Body
application/json
Replacement catalogue (max 500 items).
Maximum array length:
500