Styleguide Color

This event is used to notify webhooks about changes related to a colors in Zeplin styleguides.

Actions

  • "created"
  • "deleted"
  • "updated"

Context

AttributeTypeDescription
styleguideStyleguideStyleguide that contains the color

Resource

AttributeTypeDescription
idstringUnique id of the resource
typestring ("Color")Type of the resource (one of the API models)
dataColorObject representing the resource content

Example

{
  "event": "styleguide.color",
  "action": "created",
  "timestamp": 1572347818,
  "resource": {
    "type": "Color",
    "data": {
      "id": "5dbad85a76ea51c1f35b6f69",
      "source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
      "created": 1517184000,
      "name": "baby poop green",
      "r": 143,
      "g": 152,
      "b": 5,
      "a": 1,
      "variable_info": {
        "source_id": "280c52e619f9c84a4e5e265bb746ede50d898cb3",
        "collection_source_id": "4af2ee68305a9b4f0c655141e7ba01a51ab61bde"
      },
      "source": {
        "project": {
          "id": "5db81e73e1e36ee19f138c1a",
          "name": "HAL 9000",
          "platform": "web",
          "linked_styleguide": {
            "id": "5db981be9df2b3e1bfa19ef2"
          }
        }
      }
    }
  },
  "context": {
    "styleguide": {
      "id": "5db981be9df2b3e1bfa19ef2",
      "name": "Discovery 1",
      "description": "Global styleguide for all projects of Discovery 1.",
      "platform": "web",
      "thumbnail": "http://placekitten.com/200/300",
      "status": "active",
      "created": 1517184000,
      "updated": 1572347818,
      "number_of_members": 13,
      "number_of_components": 241,
      "number_of_connected_components": 195,
      "number_of_text_styles": 48,
      "number_of_colors": 37,
      "parent": {
        "id": "5db981b14ce405d079b376f0"
      }
    }
  },
  "actor": {
    "user": {
      "id": "5d9caaecb4a3fa9bc9718686",
      "email": "[email protected]",
      "username": "zozo",
      "emotar": "🍎",
      "avatar": "http://placekitten.com/200/300",
      "last_seen": 1616739240
    }
  }
}