Screen Version

Type: object

AttributeTypeDescription
idstringThe unique id of the version
creatorUser (Optional)-
commitVersion Commit (Optional)-
image_urlstring (Optional)URL of the image for the version
thumbnailsThumbnails (Optional)-
sourceSourceSource application of the version
widthintegerWidth of the version
heightintegerHeight of the version
background_colorColor Data (Optional)-
density_scalenumberPixel density
linksLink[]-
gridGrid (Optional)-
layersLayer[]Layers of the screen version
assetsAsset[]Assets of the screen version
createdintegerThe unix timestamp when the screen version was created

Example

{
  "id": "5dbad85a76ea51c1f35b6f69",
  "creator": {
    "id": "5d9caaecb4a3fa9bc9718686",
    "email": "[email protected]",
    "username": "zozo",
    "emotar": "🍎",
    "avatar": "http://placekitten.com/200/300",
    "last_seen": 1616739240
  },
  "commit": {
    "message": "Update paddings",
    "author": {
      "id": "5d9caaecb4a3fa9bc9718686",
      "email": "[email protected]",
      "username": "zozo",
      "emotar": "🍎",
      "avatar": "http://placekitten.com/200/300",
      "last_seen": 1616739240
    },
    "color": {
      "r": 145,
      "g": 223,
      "b": 33,
      "a": 1
    }
  },
  "image_url": "http://placekitten.com/2560/1920",
  "thumbnails": {
    "small": "http://placekitten.com/256/256",
    "medium": "http://placekitten.com/512/512",
    "large": "http://placekitten.com/1024/1024"
  },
  "width": 2560,
  "height": 1920,
  "density_scale": 2,
  "source": "sketch/value",
  "background_color": {
    "source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
    "r": 143,
    "g": 152,
    "b": 5,
    "a": 1
  },
  "links": [
    {
      "rect": {
        "x": 0,
        "y": 0,
        "width": 40,
        "height": 40
      },
      "destination": {
        "name": "Artboard",
        "type": "screen"
      }
    }
  ],
  "layers": [
    {
      "id": "5db81e73e1e36ee19f138c1a",
      "source_id": "2FF14739-F1CD-4221-A9C1-0EA296C67AD1",
      "type": "shape",
      "name": "First rectangle in group",
      "rect": {
        "x": 0,
        "y": 0,
        "width": 40,
        "height": 40,
        "absolute": {
          "x": 0,
          "y": 0
        }
      },
      "fills": [
        {
          "type": "color",
          "color": {
            "source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
            "r": 143,
            "g": 152,
            "b": 5,
            "a": 1
          }
        }
      ],
      "borders": [
        {
          "thickness": 1,
          "position": "inside",
          "fill": {
            "type": "color",
            "color": {
              "source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
              "r": 143,
              "g": 152,
              "b": 5,
              "a": 1
            }
          }
        }
      ],
      "opacity": 1,
      "blend_mode": "normal",
      "border_radius": 0,
      "rotation": 0,
      "exportable": false
    }
  ],
  "assets": [
    {
      "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
        }
      ]
    }
  ]
}