Hello, is it possible to create a checklist with the create_update mutation?
I tried different syntax but nothings seems to work. Like:
mutation {
create_update (item_id: 123446, body: “○ test\n○ step2\n○ step3”) {
id
}
}
Try this:
“body”: "<div> <ul data-checklist-holder=“true” data-checklist-id=“21067349”> "
“text_body”: “○ test\n○ test\n○ test”
“Field ‘create_update’ doesn’t accept argument ‘text_body’”,
It works with this as body value:
<ul data-checklist-id="21067349" class="checklist"><li data-checklist-task-id="56016209" class="checklist_task" dir="auto">Step1</li><li data-checklist-task-id="56016210" class="checklist_task" dir="auto">Step2</li></ul>
But im not sure if this is the right way. Because you have to use some allready used ids…
Hi @axrfr
As of right now, monday.com’s API does not officially support the creation of checklists within an update. Although I think this would be a great addition to the API and I’ve since shared your feedback with the team.
Let us know if you have any other questions or suggestions!
Hi @Scott-monday.com,
Is there any update on this? When will be possible to create checklists through the APIv2?
Thanks!
Cheers,
Atanas
Bumping this up - this would be extremely helpful! Are there any plans to integrate this into the Monday API?
Hi, I managed to make it work in a similar way as what @axrfr suggested. I used this as the body of the ‘create_update’ field without worrying much about the ids:
<ul class='checklist'><li class='checklist_task' dir='auto'>Step1</li><li class='checklist_task' dir='auto'>Step2</li></ul>
I figured monday manages the ids internally, this way its easier to make personalized messages, using python for example:
def create_update_message(items_list):
message = "<ul class='checklist'>" for item in items_list: message += f"<li class='checklist_task' dir='auto'>{item}</li>" message += "</ul>" return message
I just wanted to leave the message in case anyone needs to create updates like this since the API doesn’t provide full support for them yet
Thank you @Gabenx for sharing that!
mutation {
create_update (item_id: 6429183026, body: “
- Step1
- Step2
id
}
}
I cant get this to work in Make.com. I’m getting a blank update instead. what am i doing wrong?
Hello there @RacerX and welcome to the community!
I hope you like it here
Give this a try:
mutation {
create_update(item_id: 6429183026, body: "<ul><li>Step1</li><li>Step2</li><li>Step3</li></ul>") {
id
}
}
Hope that helps!
Cheers,
Matias