> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update variant price

> Update variant price

### Path parameters

<ParamField path="variant_id" type="string (uuid)" required>
  Variant ID
</ParamField>

### Request body

JSON body of type `UpdatePriceRequest`.

### Responses

<ResponseField name="200" type="ApiResponse_MessageResponse">
  Variant price updated
</ResponseField>

<ResponseField name="400" type="ErrorResponse">
  Invalid payload
</ResponseField>

<ResponseField name="404" type="ErrorResponse">
  Variant not found
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request PUT \
    --url 'https://api.stateset.com/api/v1/products/variants/{variant_id}/price' \
    --header 'Authorization: Bearer YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": {
      "message": "string"
    },
    "errors": null,
    "message": null,
    "meta": null,
    "success": true
  }
  ```
</ResponseExample>
