Skip to main content

The Tenant object

Attributes#

NameDescription
id (string)Unique identifier for the object
slug (string)Unique URL-friendly identifier (generated based on name)
name (string)The tenant's name
owner (Object)The tenant's owner
createdAt (string)The tenant's creation timestamp
updatedAt (string)The tenant's last update timestamp
owner (User)The tenant's author
members("nodes" > object[] > "user" > User) The tenant's members (through nested attributes)
works (Object)The tenant's Works, alongside the total count of Works in Tenant

Object payload#

{
"id": "X",
"name": "My tenant",
"owner": {
"firstName": "John",
"lastName": "Doe",
"email": "john@doe.com"
},
"slug": "my-tenant",
"createdAt": "2021-06-21T10:02:40Z",
"updatedAt": "2021-06-21T10:02:40Z",
"members": {
"nodes": [
{
"user": {
"lastName": "Doe",
"firstName": "John",
"email": "john@doe.com"
}
}
]
},
"works": {
"totalCount": 2,
"edges": [
{
"node": {
"name": "Work #1"
}
},
{
"node": {
"name": "Work #2"
}
},
]
}
}