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

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>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

The disable and migration command.
resourceTypestring or nullOptional

The resource type: model, vendor, or region.

resourceKeystring or nullOptional
The resource key.
replacementslist of objects or nullOptional
One replacement mapping for every affected source model.
presetReplacementslist of objects or nullOptional
One explicit replacement mapping for every affected preset.
confirmNoImageReplacementbooleanOptional
Whether disabling affected image models without a replacement was confirmed.

Response

No Content

Errors

400
Bad Request Error
401
Unauthorized Error