Our v3 API is now available! Learn more by visiting the v3 developer portal . Creating new v2 API keys is no longer supported.

Individual MyLibrary Folder

Use this endpoint to retrieve (GET), update (PUT), or DELETE an existing MyLibrary folder.

Methods:

Click a method to view its documentation

GET PUT DELETE

Description TOP

Privileges required : contacts:lists:write

PUT: Update the name, status of the ContactList specified by the listId path parameter. Performing a PUT overwrites all existing properties for the contactlist resource; any properties left blank or not included in the call will delete those property values prior to the call.

Description TOP

Privileges required : mylibrary:folder:update

Use PUT to modify the following properties for a folder specified by folderId path parameter:

  • update the folder's name
  • change the folder's location in the directory structure by changing it's parent_id
    To move a folder to level 1 in the directory structure, set the parent_id to 0

Description TOP

Privileges required : mylibrary:file:update

Use a PUT call to update the following for a file (specified using the fileId path parameter):

  • Update the name
  • Update the description
  • Move a file to another folder, using folder_id to specify the destination folder.

Description TOP

Privileges required : campaign:write

Update an existing event by using the eventId path parameter.

Description TOP

Privileges required : campaign:write

Update an existing event item; specify the event and the item using the eventId and itemId path parameters.

Description TOP

Privileges required : campaign:write

Update an existing promocode for an event; specify the code and event using the eventId and promocodeId path parameters.

Description TOP

Privileges required : campaign:write

Update an existing fee (specify using feeId ) for an event specified by eventId .

Description TOP

Privileges required : campaign:write

Update an existing item attribute by specifying the eventId , itemId , and attributeId path parameters. Include the attribute name and description in the JSON request body.

NOTE: You cannot change an attribute name once any have been sold to or claimed by event registrants.

Description TOP

Privileges required : campaign:activate

Update the schedule for an email campaign using the scheduleId and campaignId path parameters.

Description TOP

Privileges required : campaign:create

Update an existing email campaign message specified by the campaignId path parameter. For campaigns with a template_type = CUSTOM, all editable fields are available for updating. If template_type = STOCK, the following fields are not available for edit (read-only):

  • text_content
  • email_content
  • style_sheet

These fields can only be updated using the Constant Contact user interface.

NOTE: There are several campaign properties that are optional by default, but become REQUIRED once another property is used. See Structure table below for specific properties.

PUT: https://api.constantcontact.com/v2/library/folders/{folderId}

Test API

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 :

  • TRUE (default) - successful update returns 200 - Ok and updated JSON payload
  • FALSE - successful update returns 204 - No Content, with the Location header set to the URL of the updated resource

Example JSON Request Body TOP

  1. {
  2. "name":"Documents2",
  3. "parent_id":"0"
  4. }

Response Codes TOP

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

Structure TOP

property

type (max length)

description

Example Response TOP

  1. {
  2. "id":"-4",
  3. "name":"Documents2",
  4. "level":1,
  5. "children":[{
  6. "id":"-10",
  7. "name":"market_studies",
  8. "level":2,
  9. "children":[],
  10. "item_count":0,
  11. "parent_id":"-4",
  12. "modified_date":"2013-06-24T13:12:10.000-04:00",
  13. "created_date":"2013-06-05T09:31:55.000-04:00"
  14. }],
  15. "item_count":1,
  16. "parent_id":"0",
  17. "modified_date":"2013-06-24T13:12:10.000-04:00",
  18. "created_date":"2013-06-05T09:31:55.000-04:00"
  19. }
  20.