agentRuntime

Disables a model, vendor, or region and updates settings that use it.

Changed on

Disables a model, vendor, or region for the workspace and updates settings that use it. Use the model settings in the awork app to review affected configurations and eligible replacements before disabling. Specify the required replacement models in the request. Returns no content when the changes are saved.

<Check title="Required Permissions" icon="key">The user must be an admin or have workspace-manage-config:write permissions.</Check>

post/agents/models/settings/disable

Request

  • Base URL
    https://api.awork.com/api/v1
  • URL
    https://api.awork.com/api/v1/agents/models/settings/disable
  • Auth
    HTTP bearer

Request body

resourceTypestring required

The resource type: model, vendor, or region.

resourceKeystring required

The resource key.

confirmNoImageReplacementboolean

Whether disabling affected image models without a replacement was confirmed.

Response

No Content

object required

Changes

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      the request property's minLength was increased from 0 to 1

    • breaking

      the request property's minLength was increased from 0 to 1

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API