---
title: "edit copilot config"
method: POST
path: "/w/{workspace}/workspaces/edit_copilot_config"
tags: ["workspace"]
---

# edit copilot config

`POST /w/{workspace}/workspaces/edit_copilot_config`

## Path parameters

- `workspace` string, required

## Request body

- AIConfig
  - `providers` object
  - `default_model` AIProviderModel
    - `model` string, required
    - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
  - `metadata_model` AIProviderModel
    - `model` string, required
    - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
  - `code_completion_model` AIProviderModel
    - `model` string, required
    - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
  - `custom_prompts` object
  - `max_tokens_per_model` object
  - `model_pricing` object

## Response `200`

status

- object
  - `effective_ai_config` AIConfig, required
    - `providers` object
    - `default_model` AIProviderModel
      - `model` string, required
      - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
    - `metadata_model` AIProviderModel
      - `model` string, required
      - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
    - `code_completion_model` AIProviderModel
      - `model` string, required
      - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
    - `custom_prompts` object
    - `max_tokens_per_model` object
    - `model_pricing` object
  - `has_instance_ai_config` boolean, required
  - `uses_instance_ai_config` boolean, required
  - `instance_ai_summary` InstanceAISummary
    - `providers` InstanceAIProviderSummary[], required
      - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
      - `models` string[], required
    - `default_model` AIProviderModel
      - `model` string, required
      - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
    - `metadata_model` AIProviderModel
      - `model` string, required
      - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required
    - `code_completion_model` AIProviderModel
      - `model` string, required
      - `provider` 'openai' | 'azure_openai' | 'azure_foundry' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai', required

## Changes

> 176 revisions in range; 19 could not be searched.

- **2026-07-02** `8ec78b5962c0` — 7 warning, 3 info
  - added the new `azure_foundry` enum value to the `effective_ai_config/code_completion_model/provider` response property for the response status `200`
  - added the new `azure_foundry` enum value to the `effective_ai_config/default_model/provider` response property for the response status `200`
  - added the new `azure_foundry` enum value to the `effective_ai_config/metadata_model/provider` response property for the response status `200`
  - added the new `azure_foundry` enum value to the `instance_ai_summary/code_completion_model/provider` response property for the response status `200`
  - …6 more

[Change history](https://skmtc.dev/windmill/apis/windmill-api/changes/w/:workspace/workspaces/edit_copilot_config/post.md)

---

[API](https://skmtc.dev/windmill/apis/windmill-api.md) · [All operations](https://skmtc.dev/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/7b281701c340/schema)
