/Content/Count/
GET
Retrieves the number of content files on the network matching the specified filter criteria. If no filter is included, this call returns the total number of content files on the network.
Parameters
filter
: An expression for filtering search results.
Response Body
The content-file count is returned as an integer value.
/Content/Operations/
GET
Returns Business Operations for content.
Response Body
[string] uid
: A unique identifier for the Content instance.[string] singularName
: The name of the operation in singular form. This value is useful for displaying in entity properties dialogs.[string] pluralName
: The name of the operation in plural form. This value is useful for displaying in User and Role properties dialogs.[string] fullName
: The name of the current operation along with its parent operations (if any). Since many operation names aren't unique, this value is useful for differentiating similar business operations.[string] targetEntity
: The object type affected by the operation (in this case, "Content")[Operation{}] parent
: An Operation instance indicating the operation from which permissions are inherited. This value will be Null if there is no parent operation.[Operations[]]descendants
: An array of Operation instances that inherit permissions from this operation. This value is Null if there are no descendant operations.[Permissions[] permissions
: An array of Permission instances indicating permissions associated with this operation
/Content/{id:int}/
GET
Returns the Content instance with the specified ID.
Response Body
[int] id
: A unique identifier for the Content instance. This value is generated by the server when the content file is uploaded.[string] fileName
: The name of the content file[string] mediaType
: The file type, which can be one of the following:- "Video": An MPG, MP4, TS, MOV, VOB, or WMV video file
- "Image": A JPG, PNG, or BMP image file
- "Audio": An MP3 or WAV audio file
- "Text": A TXT file
- "Other": An unknown file type
[string] physicalPath
: The location of the file in the server directory[string] virtualPath
: The location of the file in the BSN virtual directory[string] thumbPath
: The location of the thumbnail for the video/image file in the server directory. This value is a blank string for audio, text, and unknown file types.[int] fileSize
: The file size (in bytes)[string] fileHash
: The hash algorithm and the value that results from performing the hash algorithm on the file. The string is formatted as "{algorithm}:{value}" (e.g. "SHA1:6DB465879088280AAC52DC22B07ED0AD493A99D4").[string] uploadDate
: A UTC timestamp indicating when the file was uploaded to BSN. The date/time is formatted asyyyy-mm-ddThh:mm:ss.sssZ
.[string] fileLastModifiedDate
: A UTC timestamp indicating when the file was last modified on BSN. The date/time is formatted asyyyy-mm-ddThh:mm:ss.sssZ
.[string] probeData
: The audio/video probe data. This value is a blank string for image, text, and unknown file types.[Presentation[]]presentations
: An array of Presentation object instances representing presentations that use the content file. Each Presentation instance can have the following values:[int] id
: A unique identifier for the Presentation instance
[string] name
: The presentation name[string] type
: The presentation type
[DynamicPlaylist[]]dynamicPlaylists
: An array of DynamicPlaylist object instances representing Dynamic Playlists that contain the content file. Each DynamicPlaylist instance can have the following values:[int] id
: A unique identifier for the DynamicPlaylist instance
[string] name
: The Dynamic Playlist name
[LiveMediaFeed[]]liveMediaFeeds
: An array of LiveMediaFeed object instances representing Live Media Feeds that contain the content file. Each LiveMediaFeed instance can have the following values:[int] id
: A unique identifier for the LiveMediaFeed instance
[string] name
: The Live Media Feed name
[TaggedPlaylist[]]taggedPlaylists
: An array of TaggedPlaylist object instances representing Tagged Playlists that contain the content file. Each TaggedPlaylist instance can have the following values:[int] id
: A unique identifier for the TaggedPlaylist instance
[string] name
: The TaggedPlaylist name
[Tag[]]tags
: An array of key/value pairs that represent tags assigned to the content file. Each Tag is formatted as follows:"<value_type>::<tag_type>.<tag_key>":"<value>"
.value_type
: "string" or "number"tag_type
: "[Content]" (a user-defined key/value) or "[sys].[Content]" (a 6765894 key/value)tag_key
: The tag keyvalue
: The tag value
[Permission[]]permissions
: An array of Permission object instances representing permissions rules assigned to the content file
DELETE
Removes the specified content file from the network.
Response Body
The server returns code 200 upon success. Upon failure, it returns code 400 with an error message.
/Content/{id:int}/Tags/
GET
Returns tags associated with the specified content file.
Response Body
The response body contains an array of key/value pairs that represent tags assigned to the content file. Each Tag is formatted as follows: "<value_type>::<tag_type>.<tag_key>":"<value>"
.
value_type
: "string" or "number"tag_type
: "[Content]" (a user-defined value) or "[sys].[Content]" (a 6765894 key/value)tag_key
: The tag keyvalue
: The tag value
POST
Adds one or more tags to the specified content file.
Request Body
The request body should contain an array of key/value pairs that specify tags to assign to the content file. Each Tag must be formatted as follows: "<value_type>::<tag_type>.<tag_key>":"<value>"
.
value_type
: "string" or "number"tag_type
: "[Content]" (a user-defined value) or "[sys].[Content]" (a 6765894 key/value)tag_key
: The tag keyvalue
: The tag value
DELETE
Removes one or more tags from the specified content file.
Request Body
The request body should contain an array of strings specifying tags to delete. Each string must be formatted as follows: "<value_type>::<tag_type>.<tag_key>"
value_type
: "string" or "number"tag_type
: "[Content]" (a user-defined value) or "[sys].[Content]" (a system-defined value)tag_key
: The tag key
Note
The following are valid system-defined values for content tags: "FileName", "FileSize", "ContentType", "UploadDate",