Difference between revisions of "API Assets Update File"

From unroole CMS wiki
Jump to: navigation, search
(URI)
(Required Paramaters)
Line 17: Line 17:
 
! Accepted Values
 
! Accepted Values
 
! Description
 
! Description
|-
+
{{:API Required Parameter Common}}
| token
+
|
+
|
+
|
+
| [[API Persistence Token]] that identifies this user and its permissions.
+
 
|-
 
|-
 
| style
 
| style

Revision as of 09:28, 31 May 2012

Summary

Allows for replacing a particular asset with a new file.

URI

https://api.unroole.com/[account-id]/assets/[asset-id]/change_style

HTTP Method

PUT

Required Paramaters

Paramater Default Maximum Length Accepted Values Description
token API Persistence Token that identifies this user and its permissions.
style original
  • original
  • thumb
  • icon
The asset version to replace with the new file.
file

Optional Paramaters

Paramater Default Maximum Length Accepted Values Description
regenerate 0 1 - Yes
0 - No
Regenerate all versions based on the original

Response

Field Type Description
http_status integer API Status Code
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
error Rails default