Folders
Contents
List Folders
List all Folders.
Endpoint:
URL |
|
Method |
|
Expected response code |
|
Example:
curl -v \
-H "Authorization: apikey $API_USER:$API_KEY" \
$COREDATA_BASE_URL/api/v2/folders/
Example response:
List Folders in a Project
List folders in an existing Project.
Endpoint:
URL |
|
Method |
|
Expected response code |
|
URL parameters:
project_id
– is ID of a Project to list Folders for.
Example:
project_id=3122576a-71cf-11ee-848e-b7be3292bc02
curl -v \
-H "Authorization: apikey $API_USER:$API_KEY" \
$COREDATA_BASE_URL/api/v2/projects/$project_id/folders/
Example response:
Create a Folder in a Project
Create a Folder in an existing Project.
Endpoint:
URL |
|
Method |
|
Content-Type |
|
Expected response code |
|
Parameters:
project
orparent
– ID of the project to create folder in;title
– the title of the new Folder.
Example:
project_id=d4d780ae-7758-11ee-9f6f-2b890065fae6
title="New folder"
curl -v \
-X POST \
-H "Authorization: apikey $API_USER:$API_KEY" \
-H "Content-Type: application/json" \
-d "{\"title\": \"$title\", \"project\": \"$project_id\"}" \
$COREDATA_BASE_URL/api/v2/folders/
Where:
project_id
– ID of the project to create new Folder in;title
– the new Folder title.
The successful response contains Location
header containing link to the newly created Folder. The link contains ID of the Folder. Here is an example:
Location: /api/v2/folders/8c7844dc-77bd-11ee-9eb5-f7d17bec4477/