Much like a computer's filesystem the Cxense Advertising platform structures its inventory items in the form of a tree of Folders. The structure of this tree (ie. the name and location of the Folders that make it up) can be managed via the Folder REST API.
This API can be accessed by users with the appropriate permissions to manage Folders and supports the following combination of operations on Folder domain objects:
|
Object |
Supported operations |
|---|---|
|
Folder |
POST, GET, PUT and DELETE |
Individual Folders
The POST, GET, PUT and DELETE operations are supported for management of individual Folders.
POST
Create a new Folder under the specified Folder
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
folderCode- can either be:
-
the folderId of an existing Folder (can be determined as detailed in Folder REST API - GET operation below)
-
the string "advertising" to retrieve the containers immediately visible when clicking on the Advertising tab in the Cxense Advertising user interface
-
the string "publishing" to retrieve the containers immediately visible when clicking on the Publishing tab in the Cxense Advertising user interface
-
This XML example shows the contents required to be supplied for a POST call:
Click to view XML example
|
Example commands:
|
|
|
GET
Retrieve the specified Folder and the folderIds of each of its child Folders.
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
folderCode- can either be:
-
the folderId of an existing Folder
-
the string "advertising" to retrieve the containers immediately visible when clicking on the Advertising tab in the Cxense Advertising user interface
-
the string "publishing" to retrieve the containers immediately visible when clicking on the Publishing tab in the Cxense Advertising user interface
-
This XML example shows the contents returned from a typical GET call:
Click to view XML example
|
Example commands:
|
|
|
PUT
Update the Folder with the given folderId
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
folderId the id of the Folder to be updated
This XML example shows the contents required to be supplied for a PUT call:
Click to view XML example
|
Example commands:
|
DELETE
Delete the Folder with the given folderId
|
Parameters:
-
cxadbaseurl the base URL of the Cxense Advertising system
-
folderId the id of the Folder to be deleted
Example commands:
|