Project Member

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

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

Actions

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

Context

AttributeTypeDescription
projectProjectProject that contains the user

Resource

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

Example

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