Restart
Restart an individual machine. If the machine is already restarting, this action will request the machine be restarted again. This action can only be performed by the user who owns the machine.
Examples
HTTP
Node.js
1
# HTTP request:
2
https://api.paperspace.io
3
POST /machines/ps123abc/restart
4
x-api-key: 1ba4f98e7c0...
5
# Returns 204 on success
Copied!
1
paperspace.machines.restart({
2
machineId: 'ps123abc',
3
}, function(err, res) {
4
// handle error or result
5
});
Copied!
Parameters
Name
Type
Description
machineId
string
Id of the machine to restart
Last modified 9mo ago
Copy link