Difference between revisions of "API Assets Upload"

From unroole CMS wiki
Jump to: navigation, search
(URI)
(Optional Paramaters)
Line 78: Line 78:
 
|-
 
|-
 
| sharable
 
| sharable
| false
+
| 0
 
|
 
|
| true - Yes<br />false - No
+
| 1 - Yes<br />0 - No
 
| Asset can be shared through the [[Mobile Briefcase]]
 
| Asset can be shared through the [[Mobile Briefcase]]
 
|-
 
|-
 
| editable
 
| editable
| false
+
| 0
 
|  
 
|  
| true - Yes<br />false - No
+
| 1 - Yes<br />0 - No
 
| Asset can be opened in other applications through the [[Mobile Briefcase]]
 
| Asset can be opened in other applications through the [[Mobile Briefcase]]
 
|-
 
|-
 
| printable
 
| printable
| false
+
| 0
 
|
 
|
| true - Yes<br />false - No
+
| 1 - Yes<br />0 - No
 
| Asset can be printed through the [[Mobile Briefcase]]
 
| Asset can be printed through the [[Mobile Briefcase]]
 
|}
 
|}

Revision as of 14:15, 28 May 2012

Summary

Allows for uploading a new asset.

URI

http://[channel_subdomain]-[account_subdomain].unroole.com/unroole/admin/assets

[channel_subdomain] is optional

HTTP Method

POST

Required Paramaters

Paramater Default Maximum Length Accepted Values Description
token API Persistence Token that identifies this user and its permissions.
asset[asset][] List of files. Not required if asset[video_id][] is specified.
asset[video_id][] List of youtube videos. The unique video id or url provided by youtube. ex: (LADHwoN2LMM, http://www.youtube.com/watch?v=LADHwoN2LMM). Not required if asset[asset][] is specified.

Optional Paramaters

Paramater Default Maximum Length Accepted Values Description
asset[name] Filename with spaces replaced with underscores. 255 The name of the asset.
asset[description] The description of the asset.
asset[tag_list] List of comma separated tags (e.g. Ruby, HTML5, css3).
asset[private] 0 0 - Yes
1 - No
Public accessibility of an asset determines if its links can be shared or bookmarked.
sharable 0 1 - Yes
0 - No
Asset can be shared through the Mobile Briefcase
editable 0 1 - Yes
0 - No
Asset can be opened in other applications through the Mobile Briefcase
printable 0 1 - Yes
0 - No
Asset can be printed through the Mobile Briefcase

Response

Field Type Description
status string API Status Code
success_files array of API Asset Fields List of files that were successfully uploaded
failed_files array of files names List of file names that failed to uploaded
error

Example Response