{"_id":"55651daa65a1130d00400c30","__v":10,"user":"555a5da8bcb32e19006f816f","category":{"_id":"55651e0165a1130d00400c32","project":"5548466bd2c8410d006c2143","__v":6,"pages":["55651e6103b6710d00916957","55651ead65a1130d00400c33","55651fb6b893840d00444746","556523f5b60f251900703442","556524f3eb1615230053fd4d","55652555eb1615230053fd4f"],"version":"5548466bd2c8410d006c2146","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-27T01:29:37.594Z","from_sync":false,"order":5,"slug":"files","title":"Files"},"parentDoc":null,"project":"5548466bd2c8410d006c2143","version":{"_id":"5548466bd2c8410d006c2146","project":"5548466bd2c8410d006c2143","__v":8,"createdAt":"2015-05-05T04:26:19.796Z","releaseDate":"2015-05-05T04:26:19.796Z","categories":["5548466cd2c8410d006c2147","554a69ba0b54d30d007fe128","554a7f3338e3620d0082192e","5565162e03b6710d00916942","55651a0c65a1130d00400c2b","55651d4565a1130d00400c2f","55651e0165a1130d00400c32","5565217903b6710d0091695f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-27T01:28:10.721Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"javascript","code":"$.ajax({\n    type: \"GET\", \n    url: \"/api/v1/folders.json\", \n    contentType: 'application/json', \n    dataType: \"json\", \n    success: worked, \n    headers: { apiKey: apiKey }\n});"},{"code":"<?\n$context = stream_context_create(array(\n  'http'=>array(\n    'method'=>\"GET\",\n    'header'=>\"apiKey: [yourApiKey]\")\n));\n$data = file_get_contents('https://api.projectmanager.com/api/v1/folders.json', false, $context);\nprint_r(json_decode($data));\n?>","language":"php"}]},"method":"get","results":{"codes":[{"code":"{\n    \"status\": \"Okay\",\n    \"folders\": [\n        {\n            \"folders\": [\n            {\n                \"folders\": [\n                    {\n                        \"folders\": null,\n                        \"id\": 920699,\n                        \"name\": \"bbb\"\n                    }\n                ],\n                \"id\": 867877,\n                \"name\": \"aaa\"\n            }\n            ],\n            \"id\": 775763,\n            \"name\": \"My Docs\"\n        },\n        {\n            \"folders\": null,\n            \"id\": 1381704,\n            \"name\": \"Shared\"\n        },\n        {\n            \"folders\": null,\n            \"id\": 1700712,\n            \"name\": \"Reports\"\n        },\n        {\n            \"folders\": [\n            ],\n            \"id\": 239,\n            \"name\": \"Team\"\n        },\n        {\n            \"folders\": [\n            {\n                \"folders\": null,\n                \"id\": 1932272,\n                \"name\": \"0506\"\n            },\n            {\n                \"folders\": null,\n                \"id\": 1207564,\n                \"name\": \"0512\"\n            },\n            {\n                \"folders\": [\n                    {\n                        \"folders\": null,\n                        \"id\": 537060,\n                        \"name\": \"0225\"\n                    },\n                    {\n                        \"folders\": null,\n                        \"id\": 642911,\n                        \"name\": \"aa\"\n                    }\n                ],\n                \"id\": 29445,\n                \"name\": \"Deleted Projects\"\n            }\n            ],\n            \"id\": 29439,\n            \"name\": \"Projects\"\n        },\n        {\n            \"folders\": [\n            {\n                \"folders\": null,\n                \"id\": 1362128,\n                \"name\": \"campbella\"\n            }\n            ],\n            \"id\": null,\n            \"name\": \"Shared User Documents\"\n        },\n        {\n            \"folders\": null,\n            \"id\": 761942,\n            \"name\": \"Trash Can\"\n        }\n    ]\n}","language":"json","status":200,"name":""}]},"settings":"","auth":"required","params":[],"url":"/folders.json"},"isReference":false,"order":0,"body":"All files are ogranized by folders, this call lets you obtain a full list of folders.  There are no parameters or filters available at this time, the result will always contain all folders which this user has access to.\n\nA Folder is represented by the following properties:\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Property\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"Name\",\n    \"0-1\": \"The name of the folder.\",\n    \"1-0\": \"Id\",\n    \"1-1\": \"The unique identifier of the folder.\",\n    \"2-0\": \"Folders\",\n    \"2-1\": \"The sub folders of the folder.\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]","excerpt":"A Folder represents a Directory created in ProjectManager.com. This may be a Project folder, or a user created folder.\n\nUse this API to retrieve a user's Folder structure.","slug":"retrieve-folders","type":"endpoint","title":"All Folders"}

getAll Folders

A Folder represents a Directory created in ProjectManager.com. This may be a Project folder, or a user created folder. Use this API to retrieve a user's Folder structure.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format


Documentation

All files are ogranized by folders, this call lets you obtain a full list of folders. There are no parameters or filters available at this time, the result will always contain all folders which this user has access to. A Folder is represented by the following properties: [block:parameters] { "data": { "h-0": "Property", "h-1": "Description", "0-0": "Name", "0-1": "The name of the folder.", "1-0": "Id", "1-1": "The unique identifier of the folder.", "2-0": "Folders", "2-1": "The sub folders of the folder." }, "cols": 2, "rows": 3 } [/block]