This event is used to notify webhooks about changes related to a text styles in the local styleguide of Zeplin projects.
"created"
"deleted"
"updated"
Attribute | Type | Description |
---|
project | Project | Project that contains the text style |
Attribute | Type | Description |
---|
id | string | Unique id of the resource |
type | string ("TextStyle" ) | Type of the resource (one of the API models) |
data | Text Style | Object representing the resource content |
{
"event": "project.text_style",
"action": "created",
"timestamp": 1572347818,
"resource": {
"id": "5dbad85a76ea51c1f35b6f69",
"type": "TextStyle",
"data": {
"id": "5dbad85a76ea51c1f35b6f69",
"name": "Header - H1",
"created": 1517184000,
"postscript_name": "HelveticaNeue-Bold",
"font_family": "HelveticaNeue",
"font_size": 24,
"font_weight": 700,
"font_style": "normal",
"line_height": 24,
"font_stretch": 1,
"text_align": "left",
"color": {
"source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
"r": 143,
"g": 152,
"b": 5,
"a": 1
},
"source": {
"project": {
"id": "5db81e73e1e36ee19f138c1a",
"name": "HAL 9000",
"platform": "web",
"linked_styleguide": {
"id": "5db981be9df2b3e1bfa19ef2"
}
}
}
}
},
"context": {
"project": {
"id": "5db81e73e1e36ee19f138c1a",
"name": "HAL 9000",
"description": "UI designs for the onboard computer on the spaceship Discovery 1",
"platform": "web",
"thumbnail": "http://placekitten.com/200/300",
"status": "active",
"scene_url": "https://scene.zeplin.io/project/5db81e73e1e36ee19f138c1a",
"created": 1517184000,
"updated": 1572347818,
"number_of_members": 47,
"number_of_screens": 112,
"number_of_components": 46,
"number_of_connected_components": 32,
"number_of_text_styles": 28,
"number_of_colors": 17,
"linked_styleguide": {
"id": "5db81e6e6a4462065f04d932"
}
}
},
"actor": {
"user": {
"id": "5d9caaecb4a3fa9bc9718686",
"email": "[email protected]",
"username": "zozo",
"emotar": "🍎",
"avatar": "http://placekitten.com/200/300",
"last_seen": 1616739240
}
}
}