---
title: "Copy an entry into another diary"
method: POST
path: "/entries/{entryId}/copy"
tags: ["Entry versioning"]
---

# Copy an entry into another diary

`POST /entries/{entryId}/copy`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/entries/{entryId}/copy`
- Auth: HTTP bearer

The source's read permission is checked before the target's create permission, so a caller who cannot read the source never learns whether the target exists.

## Path parameters

- `entryId` string, uuid, required

## Request body

- CopyEntryRequest
  - `targetDiaryId` string, uuid, required
  - `occurredAt` string, date-time, required

## Response `201`

Copied

- object
  - `data` object, required
    - `id` string, uuid, required
    - `headCommitId` string, uuid, nullable, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
