【问题标题】:Why am I getting an error when I try to do a bulk update in the Workfront API?当我尝试在 Workfront API 中进行批量更新时,为什么会出现错误?
【发布时间】:2020-05-29 02:45:05
【问题描述】:

我正在尝试批量更新用户:

/attask/api/v9.0/user/5c74714a01438ddef4262ca7d2b589a3?&method=PUT&updates=[{"ID":"5c74714a01438ddef4262ca7d2b589a3","name":"ChefSkyFoxWasHere","homeTeamID":"5ebee6d202125cdad1a6914f47328cd1"}]&apiKey=xxxxxxxx

但不断收到此消息

{"error":{"message":"For bulk edits, the id of each object must be in the updates JSON"}}

【问题讨论】:

    标签: workfront-api


    【解决方案1】:

    我回答了我自己的问题。这是不好的语法: /attask/api/v9.0/user/5c74714a01438ddef4262ca7d2b589a3/?updates={name:"ChefSkyFoxWasHere",homeTeamID:"5ebee6d202125cdad1a6914f47328cd1"}&method=PUT&apiKey=xxxxxxxx

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-06-27
      • 2021-10-05
      • 2021-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-18
      相关资源
      最近更新 更多