---
title: "Move an image to the front of a collection"
method: POST
path: "/v1/collections/{id}/images/{imageId}/move-to-top"
tags: ["Collections"]
---

# Move an image to the front of a collection

`POST /v1/collections/{id}/images/{imageId}/move-to-top`

## Request

- Base URL: `https://api.memestack.ai`
- URL: `https://api.memestack.ai/v1/collections/{id}/images/{imageId}/move-to-top`
- Auth: HTTP bearer

Owner or admin only. Sets the image's position ahead of the current first member.

## Path parameters

- `id` string, uuid, required
- `imageId` string, uuid, required

## Response `200`

Reordered.

- object
  - `ok` boolean

## Other responses

- `403`: Not the owner or admin (collection is public).
- `404`: Collection not found, or image is not a member of it.

---

[API](https://skmtc.dev/memestack/apis/memestack-api.md) · [All operations](https://skmtc.dev/memestack/apis/memestack-api/llms.txt) · [OpenAPI document](https://skmtc.dev/memestack/apis/memestack-api/revisions/9d3a19565f75?raw)
