PATCH /api/workspaces/{workspace_id}/settings/generative-ai/
Updates the generative AI models settings for the given workspace.
Servers
- /
Path parameters
Name | Type | Required | Description |
---|---|---|---|
workspace_id |
Integer | Yes |
Updates the workspace settings for the generative AI models available. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
ClientSessionId |
String | No |
An optional header that marks the action performed by this request as having occurred in a particular client session. Then using the undo/redo endpoints with the same ClientSessionId header this action can be undone/redone. |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
openrouter |
Object | No | |
openrouter.api_key |
String | No |
The OpenRouter API key that is used to authenticate with the OpenAI API. |
openrouter.models[] |
Array | No |
The models that are enabled for this AI type. |
openrouter.organization |
String | No |
The organization that the OpenRouter API key belongs to. |
openai |
Object | No | |
openai.api_key |
String | No |
The OpenAI API key that is used to authenticate with the OpenAI API. |
openai.models[] |
Array | No |
The models that are enabled for this AI type. |
openai.organization |
String | No |
The organization that the OpenAI API key belongs to. |
anthropic |
Object | No | |
anthropic.api_key |
String | No |
The Anthropic API key that is used to authenticate with the Anthropic API. |
anthropic.models[] |
Array | No |
The models that are enabled for this AI type. |
ollama |
Object | No | |
ollama.models[] |
Array | No |
The models that are enabled for this AI type. |
ollama.host |
String | No |
The host that is used to authenticate with the Ollama API. |
mistral |
Object | No | |
mistral.api_key |
String | No |
The Mistral API key that is used to authenticate with the Mistral API. |
mistral.models[] |
Array | No |
The models that are enabled for this AI type. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.