https://github.com/elastic/elasticsearch/blob/master/rest-api-spec/src/main/resources/rest-api-spec/api/tasks.list.json specifies params node_id and parent_task instead of accepted nodes and parent_task_id.
This is present in 5.6, 6.0, and master branches.
Thanks, @nfsec, for discovering this in elastic/elasticsearch-py#659