Skip to main content
POST
Align the environment's models with the 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
dry_run
boolean
default:true
model_ids
string[]
fields
string[]

Response

What was (or would be) changed.

dry_run
boolean
fields
string[]
summary
object
backfilled
object[]
patched
object[]
unmatched
object[]
divergent
object[]
warnings
object[]

Reported, never changed: {model_id, code, provider, message}. OUTPUT_LIMIT_DROPPED = a completion model whose provider entry or own exclude_params exclude max_tokens (and not max_completion_tokens) with nothing renaming it, so its calls go out without an output limit.

failed
object[]

Models whose write failed (dry_run: false), as {model_id, catalog_id, fields, error}; each also emits an error event ModelCatalogSyncWriteFailed.