Skip to content

Duplicate a Calendar item

POST
/api/v1/calendar/items/duplicate
curl --request POST \
--url https://example.com/api/v1/calendar/items/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "date": "example", "id": "example", "kind": "log" }'

Requires a signed-in User. It copies a Log entry, Task or Event to the requested date and returns its new identity. It returns 400 for invalid input, 404 when the source is missing, or 409 when the copy cannot be saved. Route: /api/v1/calendar/items/duplicate. Inputs: . Do not automatically replay this operation after an uncertain result.

Media typeapplication/json
object
date
required

The Calendar-local day that displays the source item.

string
id
required

Stable Journal block ID, Event identity, or Task identity.

string
kind
required
string
Allowed values: log event task
Media typeapplication/json
object
date
required
string
id
required

Stable ID of the newly created copy.

string
kind
required
string
Allowed values: log event task
source

Home-relative source path for Task Undo. Other kinds do not use a file.

string | null
Example
{
"kind": "log"
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}