BrightSign Network Web API Reference Manual v.3.8 User Manual

Page 27

Advertising
background image

15

Required Permissions
Content: View Content

Parameters

[int] contentId: The identifier and primary key of the associated Content instance.

ContentFolder CreateContentFolder(ContentFolder entity)

Description
Creates a new virtual folder within the BSN Library. The folder will have a specified name and location defined by its
virtual path. This method returns the newly created object with all initialized properties (or Null if an error occurs during
the creation process).

Required Permissions
Content: View Content

Parameters

[ContentFolder] entity: A

ContentFolder

instance with an initialized

[string] Name, [string]

VirtualPath, and [string] ThumbPath (if needed). All other property values for the ContentFolder instance
will be ignored. If this parameter is set to Null, then the method will immediately return Null without error. A
descriptive error will be returned to the client if any of the following conditions occur:

o The [string] VirtualPath of the initialized ContentFolder does not contain a leading slash(“\”).
o The [string] ThumbPath does not begin with an absolute URI (i.e. “http://” or “https://”).
o The [string] Name of the initialized ContentFolder is more than 128 characters.
o A ContentFolder instance within the same parent folder has the same name.

bool MoveContent(int[] contentIds, string newVirtualPath)

Description
Moves the specified

Content

and/or

ContentFolder

instances to the specified virtual folder. This method returns True

upon success and False upon failure.

Advertising