Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit b0fa428

Browse files
committed
fix doc bug
1 parent 0b53486 commit b0fa428

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/machines/update.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ var assign = require('lodash.assign');
3939
* @example
4040
* # HTTP request:
4141
* https://api.paperspace.io
42-
* POST /machines/ps123abc/update {"machineId": "ps123abc", "machineName": "New Machine Name", "shutdownTimeoutInHours": 24, "shutdownTimeoutForces": true, "performAutoSnapshot": true, "autoSnapshotFrequency": "week", "autoSnapshotSaveCount": 4}
42+
* POST /machines/ps123abc/updateMachinePublic {"machineId": "ps123abc", "machineName": "New Machine Name", "shutdownTimeoutInHours": 24, "shutdownTimeoutForces": true, "performAutoSnapshot": true, "autoSnapshotFrequency": "week", "autoSnapshotSaveCount": 4}
4343
* x-api-key: 1ba4f98e7c0...
4444
* # Returns 204 on success
4545
*/
4646

47-
function start(params, cb) {
48-
return method(start, params, cb);
47+
function update(params, cb) {
48+
return method(update, params, cb);
4949
}
5050

51-
assign(start, {
51+
assign(update, {
5252
auth: true,
5353
group: 'machines',
54-
name: 'start',
54+
name: 'update',
5555
method: 'post',
5656
route: '/machines/:machineId/updateMachinePublic',
5757
requires: {
@@ -60,4 +60,4 @@ assign(start, {
6060
returns: {},
6161
});
6262

63-
module.exports = start;
63+
module.exports = update;

0 commit comments

Comments
 (0)