Members
Members are users that belong to a particular workspace. Every member is derived from a corresponding profile, inheriting its id and name. Within the scope of a workspace, each member is visible to one another, so operating with a reduced property set allows for enhanced data security.
Objects
Member
| Path | JSON Type | Format | Description |
|---|---|---|---|
id | string | Version 4 UUID | The member ID (derived from corresponding profile ID) |
name | string | The member name (derived from corresponding profile name) | |
handle | string | The unique @-prefixed handle for this member (derived from corresponding profile handle) |
{
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "sit+prod@matatika.com",
"handle" : "@sit+prod",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
}
Requests
View all members of a workspace
GET /api/workspaces/{workspace-id}/members
Returns all members of the workspace {workspace-id}.
Prerequisites
- The user must be a member of the workspace
{workspace-id}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members' -i -X GET
import requests
url = "https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Member collection with HAL links.
{
"_embedded" : {
"members" : [ {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "sit+prod@matatika.com",
"handle" : "@sit+prod",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members"
}
}
}
View a member of a workspace
GET /api/workspaces/{workspace-id}/members/{member-id}
Returns the member {member-id} of the workspace {workspace-id}.
Prerequisites
- The user must be a member of the workspace
{workspace-id}
Examples
- cURL
- Python (requests)
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members/auth0%7C5eb0327cbfd7490bff55feeb' -i -X GET
import requests
url = "https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members/auth0%7C5eb0327cbfd7490bff55feeb"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Member with HAL links.
{
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "sit+prod@matatika.com",
"handle" : "@sit+prod",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/79459aa4-32ba-4eac-837d-430553ab67b6/members/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
}