Skip to main content

Hi all,

 

I am new to BOX and am trying to automate the creation of creating and managing folders.

 

I tried to create and manage a folder using postman. This works the way it is intended.

 

Now to automate this I need to redirect this into a powershell script.

 

Using the curl command: 

curl https://api.box.com/2.0/folders \
-H "Authorization: Bearer ACCESS_TOKEN" \
-d '{"name":"New Folder", "parent": {"id": "0"}}' \
-X POST

(Filling in the acces token with the developers token,

BOX_u1wilbt74k3ydd5m3qo7mz9xig0pf3c4.png

Such as shown in the image above)

 

Now I need to redirect this curl script so I can run it on Powershell.

I can't seem to figure it out and am hoping you can!

 

I look forward to your responses!

 

Greetings,

 


Check out this project from GitHub. It's a PowerShell wrapper of the Box API. Here is the function from that project that you can use to create a folder.



Hi ,

 

First of all; many thanks for this answer!

It is a big step towards the solution, but i can't seem to find the cmdlets I need to have installed to use these modules.

 

Any idea where i can install these cmdlets or the box module?

 

Greetings,



Reply