Skip to main content
PUT
Bulk-replace the entire model catalogue

Authorizations

Authorization
string
header
required

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
models
object[]
required

Replacement catalogue (max 500 items).

Maximum array length: 500
confirm_clear_all
boolean

Required (true) when models is empty, to confirm wiping the entire catalogue. Ignored otherwise.

Response

Bulk replace summary.

upserted
integer
required

Number of models inserted or updated (the full incoming list).

pruned
integer
required

Number of stale models removed (absent from the new list).

inserted
integer
required

Backward-compatible alias for upserted.

deleted
integer
required

Backward-compatible alias for pruned.