---
title: "Update Model"
method: PUT
path: "/v1/model_policy/{model_policy_id}"
tags: ["Model-Policy"]
---

# Update Model

`PUT /v1/model_policy/{model_policy_id}`

## Path parameters

- `model_policy_id` union, required
  - string, uuid
  - string

## Request body

- PatchModelConfig
  - `name` string, nullable
  - `display_name` string, nullable
  - `policy` FullModelConfigInput
    - `strategy` StrategyConfig, required
      - `mode` 'loadbalance' | 'fallback' | 'single', required
      - `on_status_codes` integer[], nullable
    - `cache` CacheConfig
      - `mode` string, nullable
    - `retry` RetryConfig
      - `attempts` integer, required
      - `on_status_codes` integer[], nullable
    - `targets` union[], required
      - union
        - TargetConfig
          - `model_name` string, nullable, required
          - `weight` number, nullable
        - NestedStrategyInput
          - `strategy` StrategyConfig, required
            - `mode` 'loadbalance' | 'fallback' | 'single', required
            - `on_status_codes` integer[], nullable
          - `targets` union[], required
            - union
              - …
          - `weight` number, nullable
  - `description` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ibm/apis/wxo-server-api.md) · [All operations](https://skmtc.net/ibm/apis/wxo-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ibm/wxo-server-api/revisions/82c114c37196/schema)
