workspace

edit copilot config

Changed on
post/w/{workspace}/workspaces/edit_copilot_config

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/w/{workspace}/workspaces/edit_copilot_config
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Path parameters

workspacestring required

Request body

providersobject
custom_promptsobject
max_tokens_per_modelobject
model_pricingobject
context_window_per_modelobject

Context window in tokens per provider:model, overriding the built-in table the AI chat uses to decide when to compact its history.

copilot_disabledboolean

Hides the Windmill AI assistant (chat, sessions, code generation, completion, fixes) from the workspace UI. Read from the workspace's own settings even when the providers served fall back to the instance config. AI agent steps and the AI sandbox in flows are unaffected.

sessions_storage_disabledboolean

Stops browsers from backing their AI sessions up to the workspace's object storage. Read from the workspace's own settings like copilot_disabled.

sessions_retention_daysinteger

The server deletes the backup of a session no push has reached for this many days. Unset keeps backups until the user deletes the session. Read from the workspace's own settings like copilot_disabled.

Response

status

has_instance_ai_configboolean required
uses_instance_ai_configboolean required

Changes

    • warning

      added the new cloudflare enum value to the // response property for the response status

    • warning

      added the new cloudflare enum value to the // response property for the response status

    • warning

      added the new cloudflare enum value to the // response property for the response status

    • warning

      added the new cloudflare enum value to the // response property for the response status

    • warning

      added the new cloudflare enum value to the // response property for the response status

    • warning

      added the new cloudflare enum value to the // response property for the response status

    • warning

      added the new cloudflare enum value to the /// response property for the response status

    • warning

      added the new typesafe enum value to the // response property for the response status

    • warning

      added the new typesafe enum value to the // response property for the response status

    • warning

      added the new typesafe enum value to the // response property for the response status

    • warning

      added the new typesafe enum value to the // response property for the response status

    • warning

      added the new typesafe enum value to the // response property for the response status

    • warning

      added the new typesafe enum value to the // response property for the response status

    • warning

      added the new typesafe enum value to the /// response property for the response status

    • info

      added the new cloudflare enum value to the request property /

    • info

      added the new cloudflare enum value to the request property /

    • info

      added the new cloudflare enum value to the request property /

    • info

      added the new typesafe enum value to the request property /

    • info

      added the new typesafe enum value to the request property /

    • info

      added the new typesafe enum value to the request property /

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status