How to convert an item into subitem while keeping the original itemID via api

Hello,
I’m looking for a solution how to convert an item into subitem without changing the original itemID.
I need this because we have a Jira-Monday integration that cannot handle subitems so I would sync jira issues under epics as items and if they have a parent epic link, I would convert them into subitems under the respective item.
I know that on the UI you can convert them but I didn’t find a way to do it via api, just found only the new subitem creation method but that doesn’t work for me as I need to keep the original itemID.

Thank you in advance!

Hello there @mtix99 and welcome to the community!

I replied to the ticket you opened :grin:

Thanks so much @Matias.Monday! :slight_smile:

Happy to help @mtix99 !