Set access for user
Examples
HTTP
Node.js
1
# HTTP request:
2
https://api.paperspace.io
3
GET /machines/:machineId/setMachineAccessPublic?userId=u123abc
4
x-api-key: 1ba4f98e7c0...
5
# Returns 200 on success
Copied!
1
paperspace.machines.setAccessForUser({
2
machineId: 'ps123abc',
3
userId: 'u123abc,
4
enableAccess: true,
5
}, function(err, res) {
6
// handle error or result
7
});
Copied!
Parameters
Name
Type
Description
machineId
string
Id of the machine to enable access
userId
string
Id of the user to enable machine access for
enableAccess
boolean
When "true", the person is added as an accessor to the machine; when "false" the person is removed
Last modified 8mo ago
Copy link