Difference between revisions of "API Assets Update File"
From unroole CMS wiki
Tommy.leung (Talk | contribs) |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
== Summary == | == Summary == | ||
Allows for replacing a particular asset with a new file. | Allows for replacing a particular asset with a new file. | ||
== URI == | == URI == | ||
− | {{:API_Base_URI}}assets/[asset-id]/change_style | + | {{:API_Base_URI}}accounts/[account-id]/assets/[asset-id]/change_style |
== HTTP Method == | == HTTP Method == |
Latest revision as of 15:46, 10 December 2013
Summary
Allows for replacing a particular asset with a new file.
URI
https://api.unroole.com/accounts/[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 |
|
The asset version to replace with the new file. | |
file |
Response
Field | Type | Description |
---|---|---|
http_status | integer | API Status Code http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html |
error | Rails default |