Manage
mtime POST
Set the modification time of a file.
await ns.mtimeAsync("/123456/static/app.js", Math.floor(Date.now() / 1000));ns.mtime("/123456/a.txt", 1793250000, (err, res) => console.log(res?.statusCode));npx akamai-netstorage mtime static/app.js 1793250000Signatures
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
| Name | Type | Description |
|---|---|---|
ns_path | string | NetStorage file path. |
mtime | number | Unix time in whole seconds. |
Returns
MtimeResponse
parsed response body
On the wire
| HTTP method | POST |
| X-Akamai-ACS-Action | version=1&action=mtime&format=xml&mtime=… |
| Signed with | X-Akamai-ACS-Auth-Data and X-Akamai-ACS-Auth-Sign (HMAC-SHA256) |
| CLI | akamai-netstorage mtime static/app.js 1793250000 |
Build and sign this request in the playground →
Notes
- Milliseconds are not supported.