Membership

Membership information as represented in the Family Graph API.

This object contains membership information of a user in a site.


Fields

The Membership object contains the following fields:

Name Description Type Access Mode

site

The site where the user is a member

Site object: id and name fields

read

user

The user who is a member of the site

User object: id and name fields

read

is_manager

Indicates whether the user is a manager of the site

boolean

read

last_visit_time

Date and time when the user last visited the site

string (YYYY-MM-DD HH:MM:SS)

read

visit_count

Number of unique visits of the user in the site

int

read

individual

The individual associated with the user in a family tree in the site

Individual object: id and name fields

read

class_name

The object class name

string

read

Examples

User membership

https://familygraph.myheritage.com/user-10/memberships (open in browser)
{
"data": [
{
"site": {
"id": "site-144530322",
"name": "Demo Family Site"
},
"user": {
"id": "user-10",
"name": "Developer MyHeritage"
},
"is_manager": true,
"last_visit_time": "2015-01-01T12:44:47+0000",
"visit_count": 255,
"individual": {
"id": "individual-144530322-1000028",
"name": "Joseph Patrick Kennedy II"
},
"class_name": "Membership"
}
],
"class_name": "Connection"
}

Site membership

https://familygraph.myheritage.com/site-144530322/memberships (open in browser)
{
"data": [
{
"site": {
"id": "site-144530322",
"name": "Demo Family Site"
},
"user": {
"id": "user-10",
"name": "Developer MyHeritage"
},
"is_manager": true,
"last_visit_time": "2015-01-01T12:44:47+0000",
"visit_count": 255,
"individual": {
"id": "individual-144530322-1000028",
"name": "Joseph Patrick Kennedy II"
},
"class_name": "Membership"
}
],
"class_name": "Connection"
}