Use this endpoint to retrieve (GET), update (PUT), or DELETE an existing MyLibrary folder.
Click a method to view its documentation
Privileges required: mylibrary:folder:update
Use PUT to modify the following properties for a folder specified by folderId
path parameter:
name
parent_id
parent_id
to 0
PUT: https://api.constantcontact.com/v2/library/folders/{folderId} |
|||
name |
type |
default |
description |
---|---|---|---|
api_key |
query |
REQUIRED; The API key for the application |
|
folderId |
path |
Specifies the folder to Update |
|
include_payload |
query |
TRUE |
Determines if updated folder's JSON payload is returned :
|
{ "name":"Documents2", "parent_id":"0" }
code |
description |
---|---|
200 |
Folder was successfully updated |
204 |
Folder was successfully updated, no data returned |
400 |
Either JSON was malformed or there was a data validation error |
401 |
Authentication failure |
404 |
A folder with specified ID not found |
406 |
Unsupported accept header value, must be application/json |
409 |
A folder with that name at this level already exists |
415 |
Unsupported content-type in the header, must be application/json |
500 |
Internal server error occurred |
property |
type(max length) |
description |
|||
---|---|---|---|---|---|
+ children |
array |
List of child or grandchild folders within the selected folder, MyLibrary support 3 levels of folder nesting (Read Only) |
|||
|
|||||
created_date |
string |
Date the folder was created, in ISO-8601 format (Read Only) |
|||
id |
string |
Unique ID of the library folder (Read Only) |
|||
item_count |
integer |
Number of files in the library folder (Read Only) |
|||
level |
integer |
Indicates which level the folder resides at:
|
|||
modified_date |
string |
Date the folder was last updated, in ISO-8601 format (Read Only) |
|||
name |
string (40) |
REQUIRED. Name of the library folder, supports only ISO-8859-1 characters (no support for UTF-8 enoding) |
|||
parent_id |
string |
Unique ID of the current folder's parent folder; if the folder is at the top level (not nested), value is null |
{ "id":"-4", "name":"Documents2", "level":1, "children":[{ "id":"-10", "name":"market_studies", "level":2, "children":[], "item_count":0, "parent_id":"-4", "modified_date":"2013-06-24T13:12:10.000-04:00", "created_date":"2013-06-05T09:31:55.000-04:00" }], "item_count":1, "parent_id":"0", "modified_date":"2013-06-24T13:12:10.000-04:00", "created_date":"2013-06-05T09:31:55.000-04:00" }