diff --git a/_ml-commons-plugin/remote-models/connectors.md b/_ml-commons-plugin/remote-models/connectors.md index 9ce73a00f2..85c67d7bc7 100644 --- a/_ml-commons-plugin/remote-models/connectors.md +++ b/_ml-commons-plugin/remote-models/connectors.md @@ -290,7 +290,11 @@ POST /_plugins/_ml/connectors/_create ## Updating connector credentials -In some cases, you may need to update credentials, like `access_key`, that you use to connect to externally hosted models. You can update credentials without undeploying the model by providing the new credentials in the following request: +In some cases, you may need to update credentials, such as `access_key`, used to connect to externally hosted models. To do this without undeploying the model, provide the new credentials in an update request. + +### Connector for a specific model + +To update credentials for a connector linked to a specific model, provide the new credentials in the following request: ```json PUT /_plugins/_ml/models/ @@ -302,6 +306,21 @@ PUT /_plugins/_ml/models/ } } ``` +{% include copy-curl.html %} + +### Standalone connector + +To update credentials for a standalone connector, provide the new credentials in the following request: + +```json +PUT /_plugins/_ml/connectors/ +{ + "credential": { + "openAI_key": "YOUR NEW OPENAI KEY" + } +} +``` +{% include copy-curl.html %} ## Next steps