我需要将多个文本值添加到monday.com上的组中。我怎样才能做到这一点呢?下面的代码可以很好地用于单列插入
curl -X POST \
https://api.monday.com/v2/ \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjE4NDcyNDg1LCJ1aWQiOjk2MDE3NDUsImlhZCI6IjIwMTktMDc' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"query" :"mutation {create_item (board_id: 279985058, group_id: \"incoming_request\", item_name: \"Apple\", column_values:\"{\\\"text\\\":\\\"jihin\\\"}\") {id}}"
}
'发布于 2019-08-08 16:48:21
我得到了解决方案,使用列id来插入值
curl -X POST \
https://api.monday.com/v2/ \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Authorization: eyJhbGciOiJIUzI1NiJ9.NDcyNDg1LCJ1aWQiOjk2MDE3NDUsImlhZCI6IjIwMTktMDc' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"query" :"mutation {create_item (board_id: 279985058, group_id: \"incoming_request\", item_name: \"Apple\", column_values:\"{\\\"text_column_id\\\":\\\"jihin\\\"}\") {id}}"
}'使用它来获取列ids
curl -X POST \
https://api.monday.com/v2/ \
-H 'Authorization: eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjE4NDcyNDg1LCJ1a.x_rgVRieSHvzbidQbFw9v8qmnIREubYpundTmbfQDKU' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 551e9ec4-d442-4310-88a9-c19f16407e90' \
-H 'cache-control: no-cache' \
-d '{
"query" :"{boards (ids: 279985058) { columns { id title type } }}"
}
'https://stackoverflow.com/questions/57252288
复制相似问题