Hi everyone,
I’m currently working with the LeanIX API and trying to clean up ToDos in an automated way.
My specific use case is:
- I want to filter ToDos by a specific user (assignee/responsible person)
- and then delete exactly those ToDos via the API
From what I understand so far, the API only allows deleting ToDos by ID (one by one). So the approach would be:
- Query all ToDos with a filter (e.g. by assignee)
- Extract the IDs
- Delete each ToDo individually
However, I have a few open questions:
- Is there a recommended way to filter ToDos by assignee (GraphQL or REST)?
- Is there any bulk delete option available that I might be missing?
- Are there best practices for handling this kind of cleanup (e.g. performance, pagination, rate limits)?
Would really appreciate any examples or guidance!
Thanks in advance 🙂