ReferenceModels and usage
Change one of the team's providers, replace its key, or turn it off (its owners and admins)
PATCH
Allowed even while adding team providers is turned off. Proxy mode only; a new URL is checked as on create.
team*stringTeam slug or ID
providerId*stringFormat
uuidIf-Match*stringThe resource's revision, as returned in ETag (for example "3"). Missing returns 428; stale returns 412.
application/json- body
name?stringLength
length <= 100baseUrl?stringLength
length <= 2048apiKey?stringReplaces the key
Length
length <= 4096accessMode?stringValue in
"proxy""direct"headers?Replaces every extra header ({} removes them)
enabled?booleanUpdated provider
application/json- response
data*curl -X PATCH 'https://agents.example.com/v1/teams/string/model-providers/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'If-Match: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "kind": "openai", "baseUrl": "string", "accessMode": "proxy", "enabled": true, "hasHeaders": true, "modelCount": 0, "revision": 0, "team": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "kind": "team" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}