Boffin Codersts-netstorageapi-akamaiby Boffin Coders

Manage

mtime POST

Set the modification time of a file.

await ns.mtimeAsync("/123456/static/app.js", Math.floor(Date.now() / 1000));

Signatures

mtimeAsync(ns_path: string, mtime: number): Promise<MtimeResponse>
mtime(ns_path: string, mtime: number, callback: (err: any, res?: http.IncomingMessage, body?: MtimeResponse) => void): void

Parameters

NameTypeDescription
ns_pathstringNetStorage file path.
mtimenumberUnix time in whole seconds.

Returns

MtimeResponse

parsed response body

On the wire

HTTP methodPOST
X-Akamai-ACS-Actionversion=1&action=mtime&format=xml&mtime=…
Signed withX-Akamai-ACS-Auth-Data and X-Akamai-ACS-Auth-Sign (HMAC-SHA256)
CLIakamai-netstorage mtime static/app.js 1793250000

Build and sign this request in the playground →

Notes

← symlinkdelete →