Todoist API and the "children" field part 2
This is a follow up to a previous problem which you fixed. Ok, I'm working with the API, specifically I want to imitate the behavior of todoist when I do "add task below". In my current problem I'm adding below a task that is itself a parent task and it is open. When doing this on the website it places the task right after the opened parent on the same indentation level and the new task becomes the parent of the children. Make sense so far?
So I'm doing the same in my application however I notice that even though I add a new task after a task that is an opened parent everything works however the old parent still shows in its "children" field all the ids of the children that now belong to the new task. The UI in both my application and the website shows everything in the right order however I think it's still a problem if the data itself is showing the children field has having children when it no longer does. Trying to call the updateItem api method on the old parent and passing the children variable doesn't have any effect. Some help or guidance please? I know this post is confusing so ask me any questions to clarify. Thanks in advance.