Difference between revisions of "API Assets Update File"
From unroole CMS wiki
Tommy.leung (Talk | contribs) (Created page with "== Summary == Allows for replacing a particular asset with a new file. == URI == http://[channel_subdomain]-[account_subdomain].unroole.com/unroole/admin/asset/[asset_id]/cha...") |
Tommy.leung (Talk | contribs) (→Required Paramaters) |
||
Line 30: | Line 30: | ||
| | | | ||
| {{:API Asset Styles}} | | {{:API Asset Styles}} | ||
− | | The asset | + | | The asset version to replace with the new file. |
|- | |- | ||
| file | | file |
Revision as of 11:44, 29 May 2012
Summary
Allows for replacing a particular asset with a new file.
URI
http://[channel_subdomain]-[account_subdomain].unroole.com/unroole/admin/asset/[asset_id]/change_style
[channel_subdomain] is optional.
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 |
Optional Paramaters
Paramater | Default | Maximum Length | Accepted Values | Description |
---|---|---|---|---|
regenerate | true | 1 - Yes 0 - No |
Regenerate all version based on the original |
Response
Field | Type | Description |
---|---|---|
status | string | API Status Code |
error |