---
title: "Update back order rebalancing rule rank"
method: PUT
path: "/commerce/rules/backorderrebalancing/{code}/rank"
tags: ["BackorderRebalancingRules"]
---

# Update back order rebalancing rule rank

`PUT /commerce/rules/backorderrebalancing/{code}/rank`

Updates the rank for a back order rebalancing rule and rearranges the ranks of all other rules accordingly.

## Path parameters

- `code` string, required

## Query parameters

- `responseFields` string

## Request body

- UpdateRankRequest — Represents a request to update the rank of a SafetyStock, PurchaseLimit and Return Rule.
  - `code` string, nullable — Gets or sets the code of the rule to be updated. It can be SafetyStock Code , PurchaseLimit Code or Return Rule Code
  - `newRank` integer — Gets or sets the new rank of the rule.
  - `oldRank` integer — Gets or sets the old rank of the rule.

## Response `200`

OK

## Other responses

- `204` — Rank updated successfully.
- `400` — OldRank or NewRank is invalid.

---

[API](https://skmtc.net/kibocommerce/apis/customer.md) · [All operations](https://skmtc.net/kibocommerce/apis/customer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kibocommerce/customer/versions/47c0cf7b75ab/schema)
