Set the models agents may name on a connection
The operator (installation.settings.manage, the workspace owner), signed in; an API key is 403 whatever its scopes. Replaces the connection's models (at most 64, none repeated) and, when sent, its model_families (which models are versions of one series, newest highest; null clears them). Changes those fields only: the connection's definition stays. A release made afterwards checks its card's model against the new list; a session whose model was taken off the list stops at its next model call, or moves to the next listed model of its series when its agent migrates models automatically. A disabled connection is 409 disabled. Writes a set_connection_models receipt.
Auth: cookie session only; no scope. Idempotency-Key: ignored.
cookieSession__Host-werft_session<token>For the web console: the browser session cookie set by POST /v1/auth/login. It holds the scopes of the user's workspace role (owner: all; admin and member: all but sessions:recover). Requests other than GET must also send X-Requested-With: werft-web.
id*stringThe model connection's id.
1 <= lengthX-Requested-With?"werft-web"Required with a cookie session: the literal werft-web.
"werft-web"application/json- body
models*array<>items <= 64model_families?|nullThe entry's id and the change's receipt.
application/json- response
id*string1 <= lengthreceipt_id*string^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidcurl -X POST 'https://example.com/v1/installation/settings/connections/string/models' \ -H 'Content-Type: application/json' \ -d '{ "models": [ "claude-sonnet-5", "claude-haiku-5" ], "model_families": null}'{ "id": "anthropic-main", "receipt_id": "019a0000-0000-7000-8000-0000000000f3"}