Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2014-06-19 08:57:06

ashraf
Member
Registered: 2014-05-30
Posts: 18

Create folder using the API 6

here is below the method I am trying to use in my API code to create new parent folder.

Folders.CreateFolder/params={"folderName"="koko",parentid=0,"type"="FOLDER"}

but unfortunately I received this bad error input!

{"result":{"api":"BAD_INPUT","action":"API_ERROR","debug":"Parameter, 'type' not found for 'Createfolder' action."}}

How I can solve this error ? Appreciate your kind help

Thanks
Ash.

Offline

#2 2014-06-19 09:37:50

steve
Third Light Staff
Registered: 2013-06-06
Posts: 105

Re: Create folder using the API 6

Hi Ash,

Could you supply the JSON output produced by your code. It should look similar to this:

 "apiVersion": "1.0.1", "action": "folders.CreateFolder", "inParams": { "folderName": "koko", "parentId": 0, "type": "FOLDER", "description": "A test folder", "folderDate": 1403166530, "options": "", "searchParams": "" }, "sessionId": "Y-eDhhjkDzrstcahkA4Hyju-vwQN3D-z" }

Best Regards,
Steve

Offline

#3 2014-06-19 09:45:07

ashraf
Member
Registered: 2014-05-30
Posts: 18

Re: Create folder using the API 6

Hi Steve I managed to create new  folder.

Thank you so much

Ash.

Offline

#4 2014-06-19 09:47:07

ashraf
Member
Registered: 2014-05-30
Posts: 18

Re: Create folder using the API 6

is it possible to rename the folder using the API ?

Offline

#5 2014-06-19 10:06:04

steve
Third Light Staff
Registered: 2013-06-06
Posts: 105

Re: Create folder using the API 6

Yes, you can use Folders_SetName:

http://yoursite.com/apidocumentation.tl … rs_SetName

Best Regards,
Steve

Offline

#6 2014-06-19 10:16:52

ashraf
Member
Registered: 2014-05-30
Posts: 18

Re: Create folder using the API 6

Cheers for that have a good day.

Offline

Board footer