+ Add Question

Using API how do you remove a label from a task

There doesn't seem to be a way to remove a label from a task using the Standard API.

If you pass in the content without the @ any existing lables persist on the item. If you pass in a label in the content like @label it adds that label to the task, but does not remove any existing labels from the task.

All responses

Omar Shahine premium
Replied on Feb 19, 2012 - 15:41

Never mind, figured it out. You need to place the following:

&labels=%20

in the URL and it clears out the labels

Can you add this to the documentation?

Omar Shahine premium
Replied on Feb 19, 2012 - 16:00

Ok, followup.

It doesn't seem like one can pass in the following in the URL:

&labels=[id1,id2]

but one has to use @label in the content

This is problematic for the following scenario.

1) Task has 2 labels
2) user removes one

there doesn't seem to be a way to simply Update the task removing one label but leaving the other.

Omar Shahine premium
Replied on Feb 26, 2012 - 15:20

Any updates on this? Would love to know how to make this work for my app.

David Trey staff
Replied on Feb 27, 2012 - 00:02

Hello Omar,

I'm sorry for the delay, I've forwarded this question to the developers, will inform you once they provide a solution for this issue.


Best regards,
David

David Trey staff
Replied on May 31, 2012 - 13:25

Hello Omar,

this issue should be fixed now. Please let us know if you're still experience it.


Best regards,
David