---
title: "Reorder a project's photos and videos"
method: PUT
path: "/v1/showcases/{showcaseId}/projects/{projectId}/items/order"
tags: ["Projects"]
---

# Reorder a project's photos and videos

`PUT /v1/showcases/{showcaseId}/projects/{projectId}/items/order`

## Request

- Base URL: `https://api.dropl.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dropl.io/v1/showcases/{showcaseId}/projects/{projectId}/items/order`
- Auth: HTTP bearer

Requires the `showcases:write` scope (create and edit showcases, categories, and tags).

## Path parameters

- `showcaseId` string, uuid, required
- `projectId` string, uuid, required

## Request body

- ReorderProjectItemsRequest
  - `imageIds` string[], required: Every item of the project, in the new order.

## Response `200`

Success

- ProjectWithItems
  - `id` string, uuid, required
  - `slug` string, required
  - `title` string, required
  - `subtitle` string, nullable, required
  - `description` string, nullable, required
  - `coverImageId` string, uuid, nullable, required: The chosen cover; null uses the first ready photo.
  - `coverUrl` string, nullable, required
  - `position` integer, required
  - `details` object, required
  - `categoryIds` string[], required
  - `itemCount` integer, required
  - `readyItemCount` integer, required: The project shows on the website once it has a public item.
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `items` ShowcaseItem[], required
    - `id` string, uuid, required
    - `kind` 'photo' | 'video', required
    - `status` 'uploading' | 'processing' | 'ready' | 'failed', required
    - `failureReason` string, nullable, required
    - `position` integer, required
    - `altText` string, nullable, required
    - `width` integer, nullable, required
    - `height` integer, nullable, required
    - `placeholderColor` string, nullable, required
    - `previewUrl` string, nullable, required
    - `largeUrl` string, nullable, required
    - `sourceFileName` string, nullable, required
    - `categoryIds` string[], required
    - `projectId` string, uuid, nullable, required: The project the item belongs to (projects showcases).
    - `video` object, nullable, required
      - `id` string, uuid, required
      - `publicId` string, required
      - `title` string, required
      - `durationMs` integer, nullable, required
      - `availability` 'public' | 'processing' | 'failed' | 'private' | 'password' | 'embed_disabled' | 'trashed', required
    - `createdAt` string, date-time, required

## Other responses

- `400`: Validation failed
- `401`: `INVALID_API_KEY`: missing, invalid, expired, or revoked key
- `403`: `INSUFFICIENT_SCOPE` (names the missing scope), `SITE_RESTRICTED_KEY`, or a plan limit
- `404`: Not found, or outside the key's sites
- `429`: Rate limited

---

[API](https://skmtc.dev/dropl/apis/dropl-public-api.md) · [All operations](https://skmtc.dev/dropl/apis/dropl-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dropl/apis/dropl-public-api/revisions/8a42e1f968d4?raw)
