How do you add multiple labels to a single card with a single HTTPRequest using the Trello API? I have the following code:
StringBuilder uri = new StringBuilder();
uri.append(TRELLO_URL + "/cards/").append(this.id).append("/idLabels?value=").append(labelIds[0]);
for(int i = 1; i < labelIds.length; i++) {
uri.append("&value=").append(labelIds[i]);
}
uri.append("&key=").append(key).append("&token=").append(token);
The Trello API states to separate multiple labels by using a comma (%2C) however both produce a 400. Does anyone have any experience with this?
I tried numerous solutions, such as replacing &value=
with %2C
however to no avail. There's little documentation on this solution and the Trello API is notorious with forcing you to always include everything in the URI when this could easily be solved if they accepted bodies.