Styleguide Member

This event is used to notify webhooks about changes related to the styleguide's members:

  • New member invited
  • Member removed
  • Member's role changed

Actions

  • "invited"
  • "removed"
  • "role_updated"

Context

AttributeTypeDescription
styleguideStyleguideStyleguide that contains the user

Resource

AttributeTypeDescription
idstringUnique id of the resource
typestring ("StyleguideMember")Type of the resource (one of the API models)
dataStyleguide MemberObject representing the resource content

Example

{
  "event": "styleguide.member",
  "action": "removed",
  "timestamp": 1572347818,
  "resource": {
    "type": "StyleguideMember",
    "data": {
      "user": {
        "id": "5d9caaecb4a3fa9bc9718686",
        "email": "[email protected]",
        "username": "zozo",
        "emotar": "🍎",
        "avatar": "http://placekitten.com/200/300",
        "last_seen": 1616739240
      },
      "role": "admin"
    }
  },
  "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_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
    }
  }
}