Fill client file creation times (bulk, metadata-only)
POST
/notes/ctime
const url = 'https://api.engram.page/notes/ctime';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"entries":[{"ctime":1729400000,"path":"Projects/plan.md"},{"ctime":1729486400.5,"path":"Inbox/idea.md"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Path + ctime pairs
Media typeapplication/json
SetCtimesRequest
object
entries
required
Array<object>
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" } ]}Responses
Section titled “Responses”Updated count
Media typeapplication/json
UpdatedCount
object
updated
required
integer
Example
{ "updated": 3}Invalid entries