Difference between revisions of "API Asset Fields"

From unroole CMS wiki
Jump to: navigation, search
Line 11: Line 11:
 
| name
 
| name
 
| string
 
| string
|  
+
| The display name of the asset.
 
|-
 
|-
 
| description
 
| description
Line 19: Line 19:
 
| file_name
 
| file_name
 
| string
 
| string
|  
+
| The name of the file associated with this asset
 
|-
 
|-
 
| content_type
 
| content_type
Line 49: Line 49:
 
| Youtube video id
 
| Youtube video id
 
|-
 
|-
| dimensions_original
+
| dimensions
| string
+
|  
| [width]x[height]
+
|
 +
{| class="wikitable"
 
|-
 
|-
| dimensions_thumb
+
! Field
| string
+
! Description
| [width]x[height]
+
 
|-
 
|-
| dimensions_icon
+
| original
| string
+
|  
| [width]x[height]
+
{| class="wikitable"
 +
|-
 +
! Field
 +
! Type
 +
|-
 +
| width
 +
| integer
 +
|-
 +
| height
 +
| integer
 +
|}
 +
|-
 +
| thumb
 +
|
 +
{| class="wikitable"
 +
|-
 +
! Field
 +
! Type
 +
|-
 +
| width
 +
| integer
 +
|-
 +
| height
 +
| integer
 +
|}
 +
|-
 +
| icon
 +
|
 +
{| class="wikitable"
 +
|-
 +
! Field
 +
! Type
 +
|-
 +
| width
 +
| integer
 +
|-
 +
| height
 +
| integer
 +
|}
 +
|}
 
|-
 
|-
 
| upload_id
 
| upload_id
Line 93: Line 132:
 
|  
 
|  
 
|-
 
|-
| url_thumb
+
| styles
 +
|
 +
|
 +
{| class="wikitable"
 +
|-
 +
! Field
 +
! Description
 +
|-
 +
| thumb
 +
|
 +
{| class="wikitable"
 +
|-
 +
! Field
 +
! Type
 +
|-
 +
| url
 
| string
 
| string
|  
+
|}
 
|-
 
|-
| url_icon
+
| icon
 +
|
 +
{| class="wikitable"
 +
|-
 +
! Field
 +
! Type
 +
|-
 +
| url
 
| string
 
| string
|  
+
|}
 +
|}
 
|}
 
|}

Revision as of 09:54, 31 May 2012

Field Type Description
id integer
name string The display name of the asset.
description string
file_name string The name of the file associated with this asset
content_type string mime-type of the asset Internet media type
file_size integer in bytes
asset_updated_at datetime When asset was updated (replace the asset, regenerated from original...etc.)
updated_at datetime When the asset meta data was updated (name, description...etc.)
created_at datetime When the asset was created
type string
  • Image
  • Pdf
  • Document
video_id string Youtube video id
dimensions
Field Description
original
Field Type
width integer
height integer
thumb
Field Type
width integer
height integer
icon
Field Type
width integer
height integer
upload_id string Unique string to help with querying for a specific set of assets uploaded in a batch
private boolean 1 - True
0 - False
sharable boolean 1 - True
0 - False
editable boolean 1 - True
0 - False
printable boolean 1 - True
0 - False
used boolean If the asset is used in other parts of the cms (gallery, page, collection...etc.)
1 - True
0 - False
tags array of strings
url string
styles
Field Description
thumb
Field Type
url string
icon
Field Type
url string