This PR exposes the resourceDelegations/create endpoint and updates the docs with this.
I tested this out by running NODE_ENV=development samples/sample-file.js, where the samples/sample-file.js looks like this:
var paperspace_node = require('../index');
// Set apkKey for use of the paperspace api
var paperspace = paperspace_node({
apiKey: '9ddd...' // Substitue your actual apiKey here
});
var delegation = {
"machine": {
"ids": ["ps2n..."]
}
};
paperspace.resourceDelegations.create(delegation, function (error, result) {
console.log(error, result);
});
This PR exposes the
resourceDelegations/create
endpoint and updates the docs with this.I tested this out by running
NODE_ENV=development samples/sample-file.js
, where the samples/sample-file.js looks like this: