【问题标题】:trello api update checkitem statetrello api 更新检查项状态
【发布时间】:2019-07-10 22:13:53
【问题描述】:

我想使用 Trello API 来更新 checkItem 的状态。

这是我的 PUT:

网址:cards/50d3791447d8a71f52000243/checklist/50d3841d65296725520002a0/checkItem/50d384e9c027149d3300074b/state

字段:idCheckList=50d3841d65296725520002a0&idCheckItem=50d384e9c027149d3300074b&value=true

这里是 API 参考:

https://trello.com/docs/api/card/index.html#put-1-cards-card-id-or-shortlink-checklist-idchecklist-checkitem-idcheckitem-state

其他所有请求都正常工作,但是这有问题,我不知道是什么:(

【问题讨论】:

  • 你得到什么回应?

标签: api state trello


【解决方案1】:
PUT /1/cards/[card id or shortlink]/checklist/[idChecklist]/checkItem/[idCheckItem]/state is the URI.  

https://api.trello.com/1/cards/[card id]/checklist/[checklist id]/checkItem/[checkitem id]/state?key=[your api key]&token=[your trello token]&value=false

这将返回 200 OK 并将检查项更新为不完整/未检查。

【讨论】:

    【解决方案2】:

    我必须在 Postman 中输入这个 url 来更新(检查)我的清单项目:

    https://api.trello.com/1/cards/123myCard/checkItem/123myItem?state=complete&key=123myKey&token=123myToken
    

    trello developer doc reference

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-18
      • 2014-11-30
      • 1970-01-01
      • 1970-01-01
      • 2017-06-06
      • 2020-01-01
      • 2016-03-12
      • 2012-01-11
      相关资源
      最近更新 更多