Asset

Assets are automatically generated while exporting designs based on the platform the design is exported. Asset formats and densities change according to these platforms.

PlatformFormats
BasePNG (1.0, 1.5, 2.0, 3.0, 4.0), and PDF
WebPNG (1.0, 2.0, 3.0), SVG, and JPG (bitmap image)
iOSPNG (1.0, 2.0, 3.0), and PDF
AndroidPNG (1.0, 1.5, 2.0, 3.0, 4.0), and SVG

Type: object

AttributeTypeDescription
layer_source_idstring (Optional)Layer's identifier in the design tool
display_namestringDisplay name of the asset
layer_namestring (Optional)Name of the layer containing the asset
contentsAsset Content[]-

Example

{
  "layer_source_id": "55CC0025-C3C1-429E-92B2-610D56368473",
  "display_name": "rectangle",
  "layer_name": "Rectangle",
  "contents": [
    {
      "url": "http://placekitten.com/100/200",
      "format": "png",
      "density": 1
    }
  ]
}