Hi, Could you please help us to find a correct way how to implement the following functionalities via Monday API?
We need to change parent item of sub-item in same board. Sub-items API doesn’t contain update API method, what is the correct way to do that?
Change body of “updates” entity by update id. Updates API doesn’t contain update API method as well
I am from Playtika and we buy monday subscription. Can you help or if I can’t do this, you can extend your API to full clone or move subitem to another parent with all setted columns and updates, because you have this ability on you UI.
To change the parent item of a subitem, you can take the parent item ID and use a mutation to update it’s values. You’ll want to keep in mind that subitems and items technically live on different boards, so the board ID for the parent item will be different from the board ID of the subitem, given that subitems are made on a separate board.
Our API does not support changes to the body of updates – but I’m happy to pass this along to our team as a feature request.
I hope this helps! Please let me know if you have any more questions.
Hi, @alessandra I tried to mutate parent_item_id and it didn’t work, maybe you can show an example of a request how to do it correctly for an existing subitem?
Ohh so you want to move a subitem to another item using the API.
We do not have a mutation for that, but you can get the information from the subitem with a query and then use the create_subitem method to create a new subitem with the same information in the desired parent item.
Please note that the new subitem will have a different ID from the original one.
and then use the create_update method to create the updates and using the “parent_id” parameter with the ID of an update to create the replies for the updates.
As I said, that can not be achieved in the way you want it.
The closest you can do is what I described and you can add in the body of the updates and replies the name of the creator. You can get that information with a query like this one:
As of today the only way of doing this via API would be to query for the subitem’s information and then creating a new subitem in the other parent item. You could then delete the original subitem if needed.