updateTask method

Future<Task> updateTask({
  1. required int id,
  2. required TaskUpdateRequest body,
})

Update a task by id.

Permissions required: Permission to edit the containing page or blog post and view its corresponding space.

Implementation

Future<Task> updateTask(
    {required int id, required TaskUpdateRequest body}) async {
  return Task.fromJson(await _client.send(
    'put',
    'tasks/{id}',
    pathParameters: {
      'id': '$id',
    },
    body: body.toJson(),
  ));
}