Hey there
I spotted a bug in the api when creating cards, where the position field seems ignored
Reproducability:
import requests
url = “https://api.trello.com/1/cards”
querystring = {“pos”:“5”, “name”:“paul”, “idList”:“5e03aef826440779352a3be4”, “key”: “key”, “token”: “token”}
response = requests.request(“POST”, url, params=querystring)
print(response.text)
This will always create and item at the top of the list --> the position field seems ignored
Returned Json
{“id”:“5e04032c8e2ff91d36303cef”,“badges”:{“attachmentsByType”:{“trello”:{“board”:0,“card”:0}},“location”:false,“votes”:0,“viewingMemberVoted”:false,“subscribed”:false,“fogbugz”:"",“checkItems”:0,“checkItemsChecked”:0,“comments”:0,“attachments”:0,“description”:false,“due”:null,“dueComplete”:false},“attachments”:[],“checkItemStates”:[],“closed”:false,“dueComplete”:false,“dateLastActivity”:“2019-12-26T00:47:40.071Z”,“desc”:"",“descData”:{“emoji”:{}},“due”:null,“dueReminder”:null,“email”:null,“idBoard”:“5e03aef826440779352a3be2”,“idChecklists”:[],“stickers”:[],“idList”:“5e03aef826440779352a3be4”,“idMembers”:[],“idMembersVoted”:[],“idShort”:234,“idAttachmentCover”:null,“labels”:[],“idLabels”:[],“manualCoverAttachment”:false,“name”:“paul”,“pos”:5,“shortLink”:“oPmFx1RF”,“shortUrl”:“https://trello.com/c/oPmFx1RF",“subscribed”:false,“url”:“https://trello.com/c/oPmFx1RF/234-paul”,“cover”:{“idAttachment”:null,“color”:null,“idUploadedBackground”:null,“size”:“normal”,“brightness”:“light”},“isTemplate”:false,"limits”:{}}
Thanks,
Paul