Skip to main content
Question

How to get ID when new createfolder

  • May 22, 2025
  • 1 reply
  • 5 views

Forum|alt.badge.img

hello.

 

I use BOX CLI API.

CLI provides "create new folder"

 

> box folders:create xxxxxxx

 

But I cannot get new folder ID.

I have to upload that new folder to some files.

 

You you know

new created folders's id?

 

1 reply

Forum|alt.badge.img

Hi Ken

 

When you create a folder via the Box cli, you should get a JSON payload returned that contains the ID of the newly created folder. Are you not seeing the returned JSON payload?

mbp-011325:box-java-sandpit-app pchristensen$ box folders:create 0 'My test folder'

{

    "type": "folder",

    "id": "128198201772",

   ....lots more json.....

 

Best regards,
Peter Christensen, Platform Solutions Engineer, Box