---
title: "Change routing rule order"
method: PATCH
path: "/api/{cloudId}/v1/teams/{teamId}/routing-rules/{id}/change-order"
tags: ["Routing rules"]
---

# Change routing rule order

`PATCH /api/{cloudId}/v1/teams/{teamId}/routing-rules/{id}/change-order`

Changes routing rule's order with given id in the request.

## Path parameters

- `teamId` string, required
- `id` string, required

## Request body

- RoutingRuleChangeOrderRequest — The order of the team routing rule within the rules. Value is actually the index of the team routing rule whose minimum value is 0 and whose maximum value is n-1 (number of team routing rules is n).
  - `order` integer, required

## Response `204`

Returned if the request is successful.

## Other responses

- `401` — Returned if the authentication credentials are incorrect.
- `403` — Returned if the user does not have permission change routing rules' order.
- `422` — Returned if the payload cannot be validated.

---

[API](https://skmtc.dev/atlassian/apis/jsm-operations-api.md) · [All operations](https://skmtc.dev/atlassian/apis/jsm-operations-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/atlassian/jsm-operations-api/revisions/ed65f017bcb8/schema)
