Difference between revisions of "API Assets Upload"

From unroole CMS wiki
Jump to: navigation, search
(Created page with "sdfasdfa")
 
Line 1: Line 1:
sdfasdfa
+
 
 +
== 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 ==
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Paramater
 +
! Default
 +
! Maximum Length
 +
! Description
 +
|-
 +
| token
 +
|
 +
|
 +
| [[API Persistance Token]] that identifies this user and its permissions.
 +
|}
 +
 
 +
== Optional Paramaters ==
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Paramater
 +
! Default
 +
! Maximum Length
 +
! 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)
 +
|}

Revision as of 12:21, 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 Description
token API Persistance Token that identifies this user and its permissions.

Optional Paramaters

Paramater Default Maximum Length 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)