---
title: "Update Sorting"
method: PUT
path: "/inboundroute/order"
tags: ["InboundRoute"]
---

# Update Sorting

`PUT /inboundroute/order`

Required Access Level: ViewSettings

## Request body

- SortOrderItem[]
  - `PublicInboundId` string, guid, required — ID of the route to change the order of
  - `SortOrder` integer, required — 1 - route will be used first

## Response `200`

OK

- InboundRoute[]
  - `PublicId` string, string
  - `Name` string, string — Name of this route
  - `FilterType` 'EmailAddress' | 'Subject'
  - `Filter` string, string — Filter of the inbound data
  - `ActionType` 'ForwardToEmail' | 'NotifyViaHttp' | 'Stop'
  - `ActionParameter` string, string — URL address or Email to notify about the inbound
  - `SortOrder` integer — Place of this route in your routes queue's order

---

[API](https://skmtc.net/elasticemail/apis/megamail-api.md) · [All operations](https://skmtc.net/elasticemail/apis/megamail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elasticemail/megamail-api/versions/1a0ebb83f676/schema)
