Add the power of the Box AI API to your custom apps at Content Cloud Summit on May 15

Learn more and register!

フォルダ名の変更

フォルダ名の変更

Box上でフォルダの名前を変更するには、そのフォルダの新しいnameをAPIに渡す必要があります。

cURL
curl -i -X PUT "https://api.box.com/2.0/folders/4353455" \
     -H "authorization: Bearer <ACCESS_TOKEN>" \
     -H "content-type: application/json" \
     -d '{
       "name": "New folder name"
     }'
Node
client.folders.update('12345', {name: 'New Name'}, callback);

名前に関する制約事項

フォルダ名にはいくつかの制限があります。印字不可能なASCII文字、スラッシュ、バックスラッシュ (/\) を含む名前のほか、末尾にスペースを含む名前は禁止されています。

また、.および..は予約済みの名前であるため、使用できません。