---
title: "Replace the image set"
method: PUT
path: "/api/v1/projects/{id}/images"
tags: ["images"]
---

# Replace the image set

`PUT /api/v1/projects/{id}/images`

## Request

- Base URL: `https://goshipyard.app`
- URL: `https://goshipyard.app/api/v1/projects/{id}/images`
- Auth: HTTP bearer

Owner only. Replaces ALL images wholesale: `hero` becomes ordinal 0 and up to two `extra` become ordinals 1–2. Omitting a field removes that image.

## Response `200`

The project with its new images.

- Project
  - `id` string, required
  - `slug` string, required
  - `owner_handle` string, required
  - `title` string, required
  - `pitch` string, required
  - `body` string, required: Long-form markdown.
  - `url` string, uri, required
  - `repo_url` string, required
  - `category` 'devtools' | 'ai' | 'games' | 'productivity' | 'design' | 'social' | 'data' | 'creative' | 'other', required
  - `upvotes` integer, required
  - `reviews` integer, required
  - `featured` boolean, required
  - `voted` boolean: Whether the caller has upvoted this project. Present on single-project reads (GET /projects/{id}) and the upvote endpoints; omitted from list responses.
  - `created_at` string, date-time, required
  - `images` ProjectImage[], required
    - `ordinal` integer, required: 0 = hero, 1–2 = gallery.
    - `url` string, uri, required
  - `html_url` string, uri, required: Human-facing project page.

## Other responses

- `401`: Missing or invalid API key.
- `403`: Authenticated, but not the owner of this resource.
- `404`: Resource not found.
- `415`: Expected multipart/form-data.
- `429`: Too many requests — slow down.

---

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