workspaces_activity_retrieve
const url = 'https://example.com/api/workspaces/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/activity';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspaces/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/activity \ --header 'Authorization: Bearer <token>'Return the members of a workspace, and what they added in the last days.
The activity is rebuilt from the creation of the objects: the nodes
created, the data linked to a node, the samples added to a node, the
submissions started, over the last period_days. It covers only the
objects the user may see: the owner sees all of them, any other member
the nodes they belong to, the data linked and the samples added to them,
and the submissions they are a member of. The
additions made by one author in a burst make a single event: the nodes,
data and samples on one side, the submissions on the other.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A UUID string identifying this workspace.
Responses
Section titled “Responses”The team of a workspace, and what it added lately.
object
The events are the ones of the last days only.
The owners first.
A member of a workspace, and their role.
object
The identifier of the user.
The full name, or the username.
Whether the member is the user reading the list.
Invited, the member has not signed up yet.
The 15 last events, the most recent first.
The additions made by one author in a single burst.
object
What the targets are. The nodes, data and samples added in a burst make one event, whose targets are the nodes created, or the nodes the data were linked or the samples added to. The submissions make their own.
node- nodesubmission- submission
One item per kind of addition, in the order of KINDS.
The objects of one kind added in a burst.
object
Node_created: nodes created. data_linked: data linked to a node. sample_created: samples added to a node. submission_created: submissions started.
node_created- node_createddata_linked- data_linkedsample_created- sample_createdsubmission_created- submission_created
The number of nodes, data, samples or submissions.
Null when the user was deleted since.
object
The last addition of the burst.
The first addition of the burst.
The 3 most recent targets only.
An object an event leads to.
object
When no event falls in the period, the most recent addition before it. Null otherwise, or when nothing was ever added.
object
Null when the user was deleted since.
object
Example
{ "events": [ { "object": "node", "additions": [ { "kind": "node_created" } ] } ]}object
object
Example
{ "code": "forbidden", "message": "You do not have permission to perform this operation. Check the `details` property for more details.", "details": [ { "parameter": "workspace", "code": "not_allowed", "message": "You are not a member of this workspace." } ]}object
object
Example
{ "code": "object_not_found", "message": "Object not found. Check the `details` property for more details.", "details": [ { "parameter": "<id>", "code": "does_not_exist", "message": "\"<id>\" does not exist." } ]}
