Bool checkcontentusage(int contentid) – BrightSign Network Web API Reference Manual v.3.8 User Manual

Page 28

Advertising
background image

16

Required Permissions
Content: Update Content

Parameters

[int[]] contentIds: An array of [int] Id values for the Content and/or ContentFolder instances that will be
updated. The number of items is limited to 100 by the server. Attempting to request more than the maximum
allowed number of objects will cause an error. If the client passes an empty array, or if none of the identifiers in the
array match existing content instances, the server will immediately return an empty response without an error.

[string] newVirtualPath: The new virtual path for the specified Content and/or ContentFolder instances (e.g.
“\Shared\Incoming\”).

bool CheckContentUsage(int contentId)

Description
Determines whether the specified

Content

instance is referenced by Presentations, Dynamic Playlists, Web Pages, or

Device Web Pages. This method returns True if the specified Content instance has parent dependencies (i.e. it is in
use).

Note that this method only supports retrieval of image, audio, and video file types. Also note that when using this
method to check whether a Content instance can be deleted, a False (“not in use”) status may change in the time
between calling this method and calling

DeleteContent()

.

Required Permissions
Content: View Content

Parameters

[int] contentId: The identifier and primary key of the associated Content instance. If there are no Content
instances with the specified identifier, this method will return False without an error.

Advertising