updateTask method

Future<Task> updateTask({
  1. required int id,
  2. bool? serializeIdsAsStrings,
})

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, bool? serializeIdsAsStrings}) async {
  return Task.fromJson(await _client.send(
    'put',
    'tasks/{id}',
    pathParameters: {
      'id': '$id',
    },
    queryParameters: {
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
  ));
}