Type: object
Attribute | Type | Description |
---|---|---|
id | string | The unique id of the component |
name | string | The name of the component |
description | string (Optional) | The description of the component |
image | Snapshot Image | - |
created | integer | The unix timestamp when the component was created |
updated | integer (Optional) | The unix timestamp when the component was updated |
section | Component Section Reference (Optional) | - |
variant_properties | Component Variant Property[] (Optional) | Variant properties of the component |
source | Resource Source (Optional) | Source of the text style. Either project or styleguide . |
latest_version | Component Version (Optional) | Design data in the latest version of the component. This exists if the related endpoint parameter (include_latest_version=true ) is provided in component endpoints. |
Example
{
"id": "5dbad85a76ea51c1f35b6f69",
"name": "Button",
"description": "Generic button for HAL 9000",
"image": {
"width": 2560,
"height": 1920,
"original_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"
}
},
"created": 1517184000,
"updated": 1572347818,
"section": {
"id": "5db81e6e6a4462065f04d932",
"group": {
"id": "507f1f77bcf86cd799439011"
}
},
"source": {
"project": {
"id": "5db81e73e1e36ee19f138c1a",
"name": "HAL 9000",
"platform": "web",
"linked_styleguide": {
"id": "5db981be9df2b3e1bfa19ef2"
}
}
},
"variant_properties": [
{
"id": "60422281c96b47c3be1a912f",
"name": "Type",
"value": "Primary"
}
]
}