Update provider in organization
Changes a provider's name, settings, key or the projects it is shared with. Its service must accept new settings or a new key first.
Changes a provider's name, settings, key or the projects it is shared with. Its service must accept new settings or a new key first.
bearerAuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$provider*stringThe provider's ID.
^prv_[0-7][0-9a-hjkmnp-tv-z]{25}$application/json- body
apiKey?stringAn API key to replace the current one, for API_KEY types.
1 <= length <= 4096availability?The projects the provider is shared with. Changing it also takes llmgateway.providers.setAvailability, and takes effect within seconds. Only an organization's provider is shared.
config?The settings, all of them: those it leaves out are cleared.
properties <= 20displayName?stringName shown in user interfaces. Empty sets the type's name.
length <= 100OK
application/json- response
availability*For an organization's provider: the projects it is shared with, which may make models of their own through it; a project's own model whose provider isn't shared with it serves nothing. The organization's models, and what projects adopted of them, serve wherever the models are shared, whomever the provider is shared with. A project's own provider is shared with none.
config*Settings, as the type's configFields describe them.
createTime?stringWhen the provider was added; unset on one that was only validated.
date-timedisplayName*stringName shown in user interfaces. Defaults to the type's name.
keyHint*stringThe last characters of the API key, to recognize it by; empty for providers connected by WORKLOAD_IDENTITY.
name*stringResource name, organizations/{organization_id}/providers/{provider_id}, or projects/{project_id}/providers/{provider_id} for a project's own.
state*stringWhether the provider's service accepts the credential: ACTIVE, it accepted it when it was last verified; NEEDS_ATTENTION, it refused the credential or settings, or the provider isn't set up yet, and stateReason says why.
"ACTIVE""NEEDS_ATTENTION"stateReason*stringWhy the provider needs attention.
trust?What the cloud trusts of kosem for this provider, for a type connected by WORKLOAD_IDENTITY.
type*stringThe provider's type, such as providerTypes/openai. It never changes.
updateTime?stringWhen the provider was last updated; unset on one that was only validated.
date-timeverifyTime*stringWhen the provider's service last accepted or refused the credential.
date-timecurl -X PATCH 'https://api.kosem.ai/v1/organizations/string/providers/string' \
-H 'Content-Type: application/json' \
-d '{}'{
"availability": {
"allProjects": true,
"projects": [
"string"
]
},
"config": {
"property1": "string",
"property2": "string"
},
"createTime": "2019-08-24T14:15:22Z",
"displayName": "string",
"keyHint": "string",
"name": "string",
"state": "ACTIVE",
"stateReason": "string",
"trust": {
"attributeCondition": "string",
"issuer": "string",
"subject": "string"
},
"type": "string",
"updateTime": "2019-08-24T14:15:22Z",
"verifyTime": "2019-08-24T14:15:22Z"
}