---
id: update-variant-parameters
title: "Update Variant Parameters"
description: "Updates the parameters for an app variant."
sidebar_label: "Update Variant Parameters"
hide_title: true
hide_table_of_contents: true
api: eJztVk1z2zYQ/SsYnOQZVXI9PfFUxfZM3KSNxpZzkTUemFyJSCiABUDHLIf/vbsAKJJW5bbnRAeJBN6+/d5Vw53YWZ6s+WdhpFDO8s2UZ2BTI0snteIJvy8z4cAylwMrhRF7cGAs22rDhGKiLNlzkJ09qAe1MDubPCiGn3j8KDM2sc6cJWyFFDdXTG892UCUOc0qr2cWZEtRF1qgYNAerVt26pfhOlJ24FQrJ6SSauf5A2E2MDqSW6e/gnq0YC26yCZ34eEyiIOZMu2dF0VU0CHTDjFjV7AVVeEsWX4FJajMTp7ByG3d8U7OznxEboXEkxiT96vV8volBc+fsBsfCQNMWgomGINR/ZbLApgztXekC8zrkAVucJVRHflvd5/+uAVbamUhYQv/zkw8OBWdYRYGkeJTrkswguy8ybAMAv6xS2oPReTgJVk3XOELSvT5R4ikUiqFy/HZwJ+VNICszlQw5TbNYS940nBXlySJ1YJmItJJV9BBzD9DS9p2ExjAunc6q0nsNSG5CsrRFbpXyNS7Mf9iqaCbgb7SkJNOgvVvAzcOtuinL5C6gS3LHtW20yNYb8t6SLjpCd4saeQk1i5r3pKL83P6GbflXZWmWGjbqmBdzvl/9zxo+eXi4pj4syhk5sXYNdXj/2B9Fc8MsOAKepIO9vYYUOh0dCtU/WnrS2hcCO30cCLRkh0Y3m762AtjRD3I0EcdDEQ5vre7twrrdwyh2AE/kJ2G+mCwFd3+W97Jr6A64jbDUu7CG6J72o2rEL5/UtZBaJwcEYbcYlHlmhq3rJxvUWy9hM9jU9p507dnOx91swXz3LVyZTB/PHeutMl8nha6ymYYL5wkMyHnopT89bpY+Ft2SVBOvWohrYx0tedbLG8+QP0eRIY5TNabIeCOyigUxhh2yAnqw2NUGSfMokIfjfwrZDsOmTxIUQyoQG/7UXH9IvZlAUetTlCpttpripGNbrwTKa4KGmAUkuDh+ezn2fkpv6MAQw9i44jUN05nsofh1Tiyh5jiDfYSdQ13IPa/9hdkZamt2ws14AvDhHUDcjlM5MjApu/iHyv9e13psY8cvLh5WaAojR9fiU2cEOtubVMBJaMVPt5mOZYiwZvmSVi4N0Xb0jE2m6FWx0cv/ETdhI2fSUvPOJC2orDwRnFObuMkPWOnLO7GgaJZ8CyKit7w8SsOh9H/Dr8l8m7aNBFwGXT95Gd5T3C02mjtBIlFSvl9E7sZjNzl/QqxT/HfyV5nJGLEN1oT+O1tDfXop50/w20o1K6iZZTwQEmfvwH4qw7B
sidebar_class_name: "put api-method"
info_path: reference/api/agenta-backend
custom_edit_url: null
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Update Variant Parameters"}
>
</Heading>

<MethodEndpoint
  method={"put"}
  path={"/variants/{variant_id}/parameters"}
>
  
</MethodEndpoint>



Updates the parameters for an app variant.

Args:
    variant_id (str): The ID of the app variant to update.
    payload (UpdateVariantParameterPayload): The payload containing the updated parameters.
    stoken_session (SessionContainer, optional): The session container. Defaults to Depends(verify_session()).

Raises:
    HTTPException: If there is an error while trying to update the app variant.

Returns:
    JSONResponse: A JSON response containing the updated app variant parameters.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<details
  style={{"marginBottom":"1rem"}}
  className={"openapi-markdown__details"}
  data-collapsed={false}
  open={true}
>
  <summary
    style={{}}
  >
    <h3
      className={"openapi-markdown__details-summary-header-params"}
    >
      Path Parameters
    </h3>
  </summary><div>
    <ul>
      <ParamsItem
        className={"paramsItem"}
        param={{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","title":"Variant Id"}}}
      >
        
      </ParamsItem>
    </ul>
  </div>
</details><MimeTabs
  className={"openapi-tabs__mime"}
>
  <TabItem
    label={"application/json"}
    value={"application/json-schema"}
  >
    <details
      style={{}}
      className={"openapi-markdown__details mime"}
      data-collapsed={false}
      open={true}
    >
      <summary
        style={{}}
        className={"openapi-markdown__details-summary-mime"}
      >
        <h3
          className={"openapi-markdown__details-summary-header-body"}
        >
          Body
        </h3><strong
          className={"openapi-schema__required"}
        >
          required
        </strong>
      </summary><div
        style={{"textAlign":"left","marginLeft":"1rem"}}
      >
        
      </div><ul
        style={{"marginLeft":"1rem"}}
      >
        <SchemaItem
          collapsible={false}
          name={"parameters"}
          required={true}
          schemaName={"object"}
          qualifierMessage={undefined}
          schema={{"type":"object","title":"Parameters"}}
        >
          
        </SchemaItem>
      </ul>
    </details>
  </TabItem>
</MimeTabs><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"200"}
        value={"200"}
      >
        <div>
          
          
          Successful Response
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      any
                    </ul>
                  </details>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"422"}
        value={"422"}
      >
        <div>
          
          
          Validation Error
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={true}
                        className={"schemaItem"}
                      >
                        <details
                          style={{}}
                          className={"openapi-markdown__details"}
                        >
                          <summary
                            style={{}}
                          >
                            <span
                              className={"openapi-schema__container"}
                            >
                              <strong
                                className={"openapi-schema__property"}
                              >
                                detail
                              </strong><span
                                className={"openapi-schema__name"}
                              >
                                 object[]
                              </span>
                            </span>
                          </summary><div
                            style={{"marginLeft":"1rem"}}
                          >
                            <li>
                              <div
                                style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
                              >
                                Array [
                              </div>
                            </li><SchemaItem
                              collapsible={true}
                              className={"schemaItem"}
                            >
                              <details
                                style={{}}
                                className={"openapi-markdown__details"}
                              >
                                <summary
                                  style={{}}
                                >
                                  <span
                                    className={"openapi-schema__container"}
                                  >
                                    <strong
                                      className={"openapi-schema__property"}
                                    >
                                      loc
                                    </strong><span
                                      className={"openapi-schema__name"}
                                    >
                                       object[]
                                    </span><span
                                      className={"openapi-schema__divider"}
                                    >
                                      
                                    </span><span
                                      className={"openapi-schema__required"}
                                    >
                                      required
                                    </span>
                                  </span>
                                </summary><div
                                  style={{"marginLeft":"1rem"}}
                                >
                                  <li>
                                    <div
                                      style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
                                    >
                                      Array [
                                    </div>
                                  </li><div>
                                    <span
                                      className={"badge badge--info"}
                                    >
                                      anyOf
                                    </span><SchemaTabs>
                                      <TabItem
                                        label={"MOD1"}
                                        value={"0-item-properties"}
                                      >
                                        <div
                                          style={{"marginTop":".5rem","marginBottom":".5rem"}}
                                        >
                                          
                                          
                                          string
                                          
                                          
                                        </div>
                                      </TabItem><TabItem
                                        label={"MOD2"}
                                        value={"1-item-properties"}
                                      >
                                        <div
                                          style={{"marginTop":".5rem","marginBottom":".5rem"}}
                                        >
                                          
                                          
                                          integer
                                          
                                          
                                        </div>
                                      </TabItem>
                                    </SchemaTabs>
                                  </div><li>
                                    <div
                                      style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
                                    >
                                      ]
                                    </div>
                                  </li>
                                </div>
                              </details>
                            </SchemaItem><SchemaItem
                              collapsible={false}
                              name={"msg"}
                              required={true}
                              schemaName={"Message (string)"}
                              qualifierMessage={undefined}
                              schema={{"type":"string","title":"Message"}}
                            >
                              
                            </SchemaItem><SchemaItem
                              collapsible={false}
                              name={"type"}
                              required={true}
                              schemaName={"Error Type (string)"}
                              qualifierMessage={undefined}
                              schema={{"type":"string","title":"Error Type"}}
                            >
                              
                            </SchemaItem><li>
                              <div
                                style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
                              >
                                ]
                              </div>
                            </li>
                          </div>
                        </details>
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"detail\": [\n    {\n      \"loc\": [\n        \"string\",\n        0\n      ],\n      \"msg\": \"string\",\n      \"type\": \"string\"\n    }\n  ]\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      