---
title: "Update contract information for an entity"
method: POST
path: "/contract_routing.ContractScoreCalculator/UpdateContract"
tags: ["Contract Routing"]
---

# Update contract information for an entity

`POST /contract_routing.ContractScoreCalculator/UpdateContract`

Updates the contract information for processors based on provided parameters

## Headers

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

## Request body

- UpdateContractRequest
  - `id` string, required — Entity identifier
  - `params` string — Additional parameters
  - `labels_information` LabelInformation[], required — Contract information for processors
    - `label` string, required — Processor identifier
    - `target_count` integer, required — Target transaction count in contract
    - `target_time` integer, required — Time period for the target (in seconds)
    - `current_count` integer, required — Current transaction count

## Response `200`

Contract update succeeded

- UpdateContractResponse
  - `status` 'CONTRACT_UPDATION_SUCCEEDED' | 'CONTRACT_UPDATION_FAILED', required — Status of the 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)
