update method

Future<void> update(
  1. String id, {
  2. String target = 'agent',
})

Updates the node: its OS packages, one named package, or the agent itself.

Implementation

Future<void> update(String id, {String target = 'agent'}) async =>
    post('/nodes/$id/update', {'target': target});