Our v3 API is now available! Learn more by visiting the v3 developer portal.

Individual Library Files

Use this endpoint to retrieve (GET) and update (PUT) information for a specific Library file, and to DELETE one or more files. To create (POST) a file, use the Library File Collection POST method.

Methods:

Click a method to view its documentation

GET PUT DELETE

DescriptionTOP

Privileges required: mylibrary:file:delete

Delete one or more MyLibrary files specified by the fileId path parameter, separate multiple file IDs with a comma. Deleted files are moved from their current folder into the system Trash folder, and its status is set to Deleted. To permanently delete a file, you must empty the Trash folder.

DELETE: https://api.constantcontact.com/v2/library/files/{fileId}

Test API

name

type

default

description

api_key

query

REQUIRED; The API key for the application

fileId

path

Specifies the MyLibrary file to delete

Response CodesTOP

code

description

204

Request was successful. No content will be returned

401

Authentication failure

404

File with provided ID not found.

500

Internal server error occurred