问题描述
根据maniphest.edit“交易类型:列” documentation,beforePHIDs
参数应为PHID数组。我认为,它看起来像如下:
curl https://5555/api/maniphest.edit \
-d api.token=api-token \
-d transactions[0][type]=column \
-d transactions[0][value][0][columnPHID]=PHID-PCOL-6666 \
-d transactions[0][value][0][beforePHIDs][0]=PHID-TASK-7777 \
-d objectIdentifier=PHID-TASK-8888
但是,当这样调用(以beforePHIDs
作为数组)时,出现以下错误,这似乎与文档相矛盾:
Exception when processing transaction of type "column": Error while reading "value[0]": Expected string,got something else.
我的curl语句需要如何更改才能起作用?我已经尝试了所有可以想到的排列方式。还是这可能是一个错误?
旁注-可以正常工作,但不允许控制票证插入点:
curl https://5555/api/maniphest.edit \
-d api.token=api-token \
-d transactions[0][type]=column \
-d transactions[0][value][0]=PHID-PCOL-6666 \
-d objectIdentifier=PHID-TASK-8888
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)