API Assets Regenerate

From unroole CMS wiki
Revision as of 14:53, 4 June 2012 by Tommy.leung (Talk | contribs)

Jump to: navigation, search

Summary

Allows for regenerating the alternate styles (thumb, icon) of an asset.

URI

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

HTTP Method

POST

Required Paramaters

Paramater Default Maximum Length Accepted Values Description
token API Persistence Token that identifies this user and its permissions.

Response

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

Notes

  • Images alternate styles regenerated based on the original image.
  • PDF alternate styles regenerated based on first page of the original PDF.
  • Youtube alternate styles regenerated based on thumbnail of the Youtube video.