---
title: "Reorder rule priorities"
method: POST
path: "/api/sites/multiscreen/site/{site_name}/personalizations/reorder"
tags: ["Personalization Rules"]
---

# Reorder rule priorities

`POST /api/sites/multiscreen/site/{site_name}/personalizations/reorder`

## Request

- Base URL: `https://api.duda.co`
- URL: `https://api.duda.co/api/sites/multiscreen/site/{site_name}/personalizations/reorder`
- Auth: HTTP basic

Sets rule priorities to match the order of the given list (index 0 = highest priority). Validates that every id belongs to the site before applying changes.

## Path parameters

- `site_name` string, required

## Request body

- ReorderRulesPayloadRDT: Reorder personalization rules. Priority follows position in the list (index 0 = highest priority).
  - `ids` string[], required: Rule ids in their desired order. Must include exactly the rules that should be reordered.

## Response `204`

Reorder applied

## Other responses

- `400`: Empty list
- `401`: Unauthorized
- `402`: Payment Required
- `404`: Rule or site not found
- `405`: Method Not Allowed
- `429`: Too many requests. The rate limit was exceeded.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/duda/apis/duda-partner-api.md) - [All operations](https://skmtc.dev/duda/apis/duda-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/duda/apis/duda-partner-api/revisions/52be4d41cb12?raw)
