---
title: "Reorder contact emails (v2)"
method: POST
path: "/v2/contact-emails/{contactId}/reorder"
tags: ["contact-emails"]
---

# Reorder contact emails (v2)

`POST /v2/contact-emails/{contactId}/reorder`

## Request

- Base URL: `https://api.prod.getdex.com`
- URL: `https://api.prod.getdex.com/v2/contact-emails/{contactId}/reorder`
- Auth: HTTP bearer

Set the display order of a contact's emails. Body is id-based: `{ order: [{ id, ranking }] }` (row ids survive, unlike v1's positional payload). **Requires `Idempotency-Key`.** Returns the bulk envelope `{ data: { affected } }`.

## Path parameters

- `contactId` string, uuid, required

## Request body

- object
  - `order` object[], required
    - `id` string, uuid, required
    - `ranking` integer, required

## Response `200`

Successful response

- object
  - `data` object, required
    - `affected` integer, required
    - `ids` string[]
    - `failed` object[]
      - `id` string, required
      - `error` object, required
        - `code` string, required
        - `message` string, required

## Other responses

- `400`: Request body failed validation.
- `401`: Missing or invalid API key.
- `403`: Valid key, insufficient permission.
- `404`: Resource does not exist.
- `409`: Request conflicts with the current state of the resource.
- `429`: Rate limit exceeded.
- `500`: Unexpected server error.

## Changes

- **2026-08-27** `a2f71a243839`: 1 info
  - api operation id `reorderContactEmailsV2` was added

[Operation history](https://skmtc.dev/getdex/apis/dex-public-api/changes/v2/contact-emails/:contactId/reorder/post.md)

---

[API](https://skmtc.dev/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.dev/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getdex/apis/dex-public-api/revisions/657247ddcf7c?raw)
