Create a new folder using API in Powershell
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,
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.
投稿コメントは受け付けていません。
コメント
2件のコメント