Inference Connections_update
ApiKeyAuthAuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
manage_inferenceconnection_id*stringuuidapplication/json- body
name?string1 <= length <= 255base_url?stringFixed on a subscription connection.
length <= 2048allowed_models?array<string>At least one entry; ["*"] allows all.
1 <= itemsapi_key?stringWrite-only. A non-empty value rotates the stored key; omit or send "" to keep it. Required when baseUrl moves to another origin (scheme, host or port). A key can be replaced but not removed. Refused on a subscription connection.
length <= 4096The request has succeeded.
application/json- response
A credential + endpoint an org can use for inference.
id*uuiduuidname*string1 <= length <= 255provider_type*ProviderTypeThe API a connection speaks. Each type sets its own base URL form and whether an API key is required.
"openai""anthropic"credential_mode*CredentialModeHow a connection authenticates to its provider.
"shared_key""subscription"base_url?stringAbsent on a managed connection: the platform's endpoint is operator infrastructure, not the org's to see.
length <= 2048allowed_models*array<string>Models this connection may be bound to. ["*"] allows all.
has_api_key?booleanRead-only: whether an API key is stored. The key itself is never returned. Absent on a managed connection, whose credential the org neither sets nor fixes.
managed*booleanRead-only: true for the platform-provided connection, which the org can't edit or delete.
created_at?stringAbsent on a managed connection.
date-timeupdated_at?stringAbsent on a managed connection.
date-timecurl -X PATCH 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/inference/connections/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "provider_type": "openai", "credential_mode": "shared_key", "base_url": "string", "allowed_models": [ "string" ], "has_api_key": true, "managed": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}