---
title: "Reorder allocation rule"
method: POST
path: "/v1/cost-allocation/{id}/rules/{ruleId}/move"
tags: ["Cost allocation"]
---

# Reorder allocation rule

`POST /v1/cost-allocation/{id}/rules/{ruleId}/move`

## Request

- Base URL: `https://api.nops.io`
- URL: `https://api.nops.io/v1/cost-allocation/{id}/rules/{ruleId}/move`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nops/apis/nops-public-api/docs/v1/cost-allocation/:id/rules/:ruleId/move/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required: Showback ID
- `ruleId` string, required: Rule ID

## Headers

- `Idempotency-Key` string, required: Unique key for safe retries on write requests (required, max 64 characters).

## Request body

- object
  - `beforeRuleId` integer, nullable

## Response `200`

Reorder allocation rule

- object
  - `data` object, required: JSON object

## Other responses

- `401`: Unauthorized — invalid or missing API key
- `403`: Forbidden — insufficient permissions or entitlement

---

[API](https://skmtc.dev/nops/apis/nops-public-api.md) - [All operations](https://skmtc.dev/nops/apis/nops-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nops/apis/nops-public-api/revisions/ac549fa495dd?raw)
