Skip to content

Fill client file creation times (bulk, metadata-only)

POST
/notes/ctime
curl --request POST \
--url https://api.engram.page/notes/ctime \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "entries": [ { "ctime": 1729400000, "path": "Projects/plan.md" }, { "ctime": 1729486400.5, "path": "Inbox/idea.md" } ] }'

Sets ctime on existing notes that have none, matched by path. Never touches content, version or sync state, and never overwrites an existing ctime, so it is idempotent. At most 500 entries per call; unknown paths are skipped.

Path + ctime pairs

Media typeapplication/json
SetCtimesRequest
object
entries
required
Array<object>
<= 500 items
object
ctime
required

Epoch seconds

number format: float
path
required
string

Example

{
"entries": [
{
"ctime": 1729400000,
"path": "Projects/plan.md"
},
{
"ctime": 1729486400.5,
"path": "Inbox/idea.md"
}
]
}

Updated count

Media typeapplication/json
UpdatedCount
object
updated
required
integer

Example

{
"updated": 3
}

Invalid entries

Media typeapplication/json
Error
object
errors
One of:
string

Example generated

{
"errors": {}
}