Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以给出在 PUT 中嵌套字段名称的正确格式,以更改给定文件的父文件夹 ID
试过了
'parent.id' '父母:id'
parent是一个有id属性的类。像这样:
parent
id
curl https://api.box.com/2.0/files/FILE_ID -H "Authorization: Bearer ACCESS_TOKEN" -d '{"parent": {"id" : "NEW_PARENT_ID"}, "name" : "NEW NAME"}' -X PUT
编辑:应提问者的要求添加name到示例中。
name