I am trying to create content folders using REST API using post method(POST /asset/v1/content/categories).I have used the below request body am i am successful when i am trying to insert one folder per request.
Host: https://www.exacttargetapis.com
POST /asset/v1/content/categories
Content-Type: application/json Authorization: Bearer YOUR_ACCESS_TOKEN
{ "Name" : "My Pictures", "ParentId" : 99 }
However I am trying to insert multiple folders in a single request by sending the data in an array like the below request and i am unsuccessful:
Host: https://www.exacttargetapis.com
POST /asset/v1/content/categories
Content-Type: application/json Authorization: Bearer YOUR_ACCESS_TOKEN
[
{ "Name" : "My Pictures", "ParentId" : 99 }
{ "Name" : "My Pictures1", "ParentId" : 99 }
]
I tried multiple ways but I keep failing. Has anyone come across this scenario.
Regards, Rumi.