Update an AI provider key
Updates an AI provider key's name or key value in the workspace
Path parameters
The workspace the key belongs to.
The key to update.
Request body
Example request
{
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"id": "aipk_01HXKD2E5NQM3T9AYWCFQ41VW3"
}Response
OK
Example response
{
"metadata": {
"accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
"workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
"profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
}
}Changes
Changed in 6 of the 57 revisions of this API.82422
- ▲
the
spec/config/allOf[AIProviderConfig]/request property type/format changed fromobject/to/request-property-type-changed
- ▲
the
spec/credentials/allOf[AIProviderCredential]/request property type/format changed fromobject/to/request-property-type-changed
- ▲
added
AIProviderConfig_OpenrouterAIProviderConfig_OpenaiAIProviderConfig_OpenaiCompatibleto thespec/config/allOf[AIProviderConfig]/response propertyoneOflist for the response status200response-property-one-of-added
- ▲
added
AIProviderCredential_ApiKeyAIProviderCredential_Headersto thespec/credentials/allOf[AIProviderCredential]/response propertyoneOflist for the response status200response-property-one-of-added
- ▲
the
spec/config/allOf[AIProviderConfig]/response's property type/format changed fromobject/to/for status200response-property-type-changed
- ▲
the
spec/credentials/allOf[AIProviderCredential]/response's property type/format changed fromobject/to/for status200response-property-type-changed
- ●
removed the request property
spec/config/allOf[AIProviderConfig]/openairequest-property-removed
- ●
removed the request property
spec/config/allOf[AIProviderConfig]/openaiCompatiblerequest-property-removed
- ●
removed the request property
spec/config/allOf[AIProviderConfig]/openrouterrequest-property-removed
- ●
removed the request property
spec/credentials/allOf[AIProviderCredential]/apiKeyrequest-property-removed
- ●
removed the request property
spec/credentials/allOf[AIProviderCredential]/headersrequest-property-removed
- ●
removed the optional property
spec/config/allOf[AIProviderConfig]/openaifrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/config/allOf[AIProviderConfig]/openaiCompatiblefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/config/allOf[AIProviderConfig]/openrouterfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/credentials/allOf[AIProviderCredential]/apiKeyfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/credentials/allOf[AIProviderCredential]/headersfrom the response with the200statusresponse-optional-property-removed
- ○
added discriminator to
spec/config/allOf[AIProviderConfig]/request propertyrequest-property-discriminator-added
- ○
added discriminator to
spec/credentials/allOf[AIProviderCredential]/request propertyrequest-property-discriminator-added
- ○
added
AIProviderConfig_OpenrouterAIProviderConfig_OpenaiAIProviderConfig_OpenaiCompatibleto thespec/config/allOf[AIProviderConfig]/request propertyoneOflistrequest-property-one-of-added
- ○
added
AIProviderCredential_ApiKeyAIProviderCredential_Headersto thespec/credentials/allOf[AIProviderCredential]/request propertyoneOflistrequest-property-one-of-added
- ○
added discriminator to
spec/config/allOf[AIProviderConfig]/response property for the response status200response-property-discriminator-added
- ○
added discriminator to
spec/credentials/allOf[AIProviderCredential]/response property for the response status200response-property-discriminator-added
- ▲
- ●
removed the request property
metadata/bundleKeyrequest-property-removed
- ●
removed the request property
spec/apiKeyrequest-property-removed
- ●
removed the request property
spec/openrouterrequest-property-removed
- ●
removed the optional property
metadata/bundleKeyfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/apiKeyfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
spec/openrouterfrom the response with the200statusresponse-optional-property-removed
- ●
added the new
AI_PROVIDER_ANTHROPICenum value to thespec/providerresponse property for the response status200response-property-enum-value-added
- ●
added the new
AI_PROVIDER_GEMINIenum value to thespec/providerresponse property for the response status200response-property-enum-value-added
- ●
added the new
AI_PROVIDER_OPENAIenum value to thespec/providerresponse property for the response status200response-property-enum-value-added
- ●
added the new
AI_PROVIDER_OPENAI_COMPATIBLEenum value to thespec/providerresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
spec/confignew-optional-request-property
- ○
added the new optional request property
spec/credentialsnew-optional-request-property
- ○
added the new
AI_PROVIDER_ANTHROPICenum value to the request propertyspec/providerrequest-property-enum-value-added
- ○
added the new
AI_PROVIDER_GEMINIenum value to the request propertyspec/providerrequest-property-enum-value-added
- ○
added the new
AI_PROVIDER_OPENAIenum value to the request propertyspec/providerrequest-property-enum-value-added
- ○
added the new
AI_PROVIDER_OPENAI_COMPATIBLEenum value to the request propertyspec/providerrequest-property-enum-value-added
- ○
added the optional property
spec/configto the response with the200statusresponse-optional-property-added
- ○
added the optional property
spec/credentialsto the response with the200statusresponse-optional-property-added
This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the optional property
info/allOf[AIProviderKeyInfo]/isPromotionalto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
metadata/updatedAtto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
request property
spec/providerwas restricted to a list of enum valuesrequest-property-became-enum
- ▲
the
spec/providerrequest property type/format changed fromstring/tostring/enumrequest-property-type-changed
- ●
removed the request property
spec/regionrequest-property-removed
- ●
removed the optional property
spec/regionfrom the response with the200statusresponse-optional-property-removed
- ●
added the new
AI_PROVIDER_OPENROUTERenum value to thespec/providerresponse property for the response status200response-property-enum-value-added
- ●
added the new
AI_PROVIDER_UNSPECIFIEDenum value to thespec/providerresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
spec/openrouternew-optional-request-property
- ○
added the new
AI_PROVIDER_OPENROUTERenum value to the request propertyspec/providerrequest-property-enum-value-added
- ○
added the new
AI_PROVIDER_UNSPECIFIEDenum value to the request propertyspec/providerrequest-property-enum-value-added
- ○
added the optional property
infoto the response with the200statusresponse-optional-property-added
- ○
added the optional property
spec/openrouterto the response with the200statusresponse-optional-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○