---
title: "Update success rate window"
method: POST
path: "/success_rate.SuccessRateCalculator/UpdateSuccessRateWindow"
tags: ["Success Rate"]
---

# Update success rate window

`POST /success_rate.SuccessRateCalculator/UpdateSuccessRateWindow`

Updates the success rate calculation window with new data points

## Headers

- `x-tenant-id` string, required
- `x-profile-id` string, required
- `x-api-key` string, required

## Request body

- UpdateSuccessRateWindowRequest
  - `id` string, required — Entity identifier
  - `params` string, required — Additional parameters for window update
  - `labels_with_status` LabelWithStatus[], required — Entity-specific labels with their success/failure status
    - LabelWithStatusList[]
      - `status` number, required — Label status
      - `label` string, required — Label identifier
  - `global_labels_with_status` LabelWithStatus[] — Global labels with their success/failure status
    - LabelWithStatusList[]
      - `status` number, required — Label status
      - `label` string, required — Label identifier

## Response `200`

Window updated successfully

- UpdateSuccessRateWindowResponse
  - `status` 'WINDOW_UPDATION_SUCCEEDED' | 'WINDOW_UPDATION_FAILED', required — Status of the window update operation

## Other responses

- `400` — Invalid request parameters
- `500` — Internal server error

---

[API](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0.md) · [All operations](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperswitch/dynamic-routing-openapi-3-0/revisions/8fbf69ab2597/schema)
