Difference between revisions of "API Assets Regenerate"

From unroole CMS wiki
Jump to: navigation, search
(Created page with "== Summary == Allows for regenerating the alternate styles (thumb, icon) of an asset based on the original. == URI == {{:API_Base_URI}}[account-id]/assets/[asset-id]/regenera...")
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Summary ==
 
== Summary ==
Allows for regenerating the alternate styles (thumb, icon) of an asset based on the original.
+
Allows for regenerating the alternate styles (thumb, icon) of an asset.
  
 
== URI ==
 
== URI ==
{{:API_Base_URI}}[account-id]/assets/[asset-id]/regenerate
+
{{:API_Base_URI}}accounts/[account-id]/assets/[asset-id]/regenerate
  
 
== HTTP Method ==
 
== HTTP Method ==
Line 31: Line 31:
  
 
== Notes ==
 
== Notes ==
* This only works for image assets.
+
* Image 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.

Latest revision as of 15:46, 10 December 2013

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

  • Image 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.