---
title: "Reorder the images attached to a print by assigning a display order to each image."
method: PUT
path: "/api/Prints/{printId}/images/reorder"
tags: ["Prints"]
---

# Reorder the images attached to a print by assigning a display order to each image.

`PUT /api/Prints/{printId}/images/reorder`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Prints/{printId}/images/reorder`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://3dprintlog.auth0.com/authorize`, token URL `https://3dprintlog.auth0.com/oauth/token`)
  - API key in header `X-Api-Key`
  - API key in query parameter `api_key`

This endpoint requires a <strong>complete</strong> set of image IDs for the print.
Every image currently attached to the print must be included in reorderDto —
partial updates (supplying only a subset of IDs, or including extra IDs) are not supported.
If the supplied set of image IDs does not exactly match the images belonging to the print,
the request is rejected with a 400 Bad Request response.

## Path parameters

- `printId` integer, required

## Request body

- PrintLogApiModelsDTOsPrintReorderImagesDto
  - `images` PrintLogApiModelsDTOsPrintImageOrderDto[], required
    - `imageId` integer
    - `displayOrder` integer

## Response `200`

The images were successfully reordered.

## Other responses

- `400`: Returned when the supplied image ID set does not exactly match the images attached to the print, or when the images list is null or empty.
- `401`: Unauthorized
- `403`: Returned when the authenticated user does not own the requested print.
- `404`: Returned when no print is found with the given printId.

---

[API](https://skmtc.dev/3dprintlog/apis/3d-print-log-api.md) · [All operations](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/llms.txt) · [OpenAPI document](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/revisions/dfc3a4df4e38?raw)
