groups

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-groups"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/c5eb9e18-8672-4d6b-badb-d682f7a5f14f/social-card.svg?v=3e7ae33eec8b" alt="groups" width="600" height="315"></a>
PATCHhttps://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}Scope person:write

Parameters

project_idstringpathrequired
type_indexintegerpathrequired
keystringpathrequired

Request body

application/json

Properties to set (replacing values) and keys to remove; at most 100 keys in all.

setobject
unsetstring[]
{
  "set": {},
  "unset": [
    "string"
  ]
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}" \
  -H "Content-Type: application/json" \
  -d '{"set":{},"unset":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

202 written at once; with an event queue the worker also re-applies the edit in order with SDK group writes
Example
{
  "properties": {}
}
Schema
propertiesobjectrequired
400
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/eventsScope person:read

Parameters

project_idstringpathrequired
type_indexintegerpathrequired
keystringpathrequired
eventstringquery
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/events"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Page of GroupEvent, newest first; cursor is (timestamp, uuid)
Example
{
  "data": [
    {
      "distinct_id": "string",
      "event": "string",
      "properties": {},
      "timestamp": "string",
      "uuid": "string"
    }
  ],
  "next_cursor": "string"
}
Schema
dataGroupEvent[]required
Show child parameters
distinct_idstringrequired
eventstringrequired
propertiesobjectrequired
timestampstringrequired
uuidstringrequired
next_cursorstring
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/relationshipsScope person:read

Parameters

project_idstringpathrequired
type_indexintegerpathrequired
keystringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/relationships"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {data: Relationship[]}, past, current and future, newest start first (at most 200)
404
POSThttps://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/relationshipsScope person:write

Parameters

project_idstringpathrequired
type_indexintegerpathrequired
keystringpathrequired

Request body

application/json
ends_onstring
kindstringrequired
csm, ae, am, se, sponsor or another lowercase role key.
starts_onstring
Defaults to today (UTC).
user_idstringrequired
{
  "ends_on": "string",
  "kind": "string",
  "starts_on": "string",
  "user_id": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/relationships" \
  -H "Content-Type: application/json" \
  -d '{"ends_on":"string","kind":"string","starts_on":"string","user_id":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 {id}
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/tasksScope person:read

Parameters

project_idstringpathrequired
type_indexintegerpathrequired
keystringpathrequired
statusstringquery
assigneestringquery
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/tasks"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Page of Task, newest first
Example
{
  "data": [
    {
      "assignee_id": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "done_at": "2024-01-01T00:00:00Z",
      "due_on": "string",
      "group_key": "string",
      "group_type_index": 0,
      "id": "string",
      "notes": "string",
      "status": "string",
      "title": "string",
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "next_cursor": "string"
}
Schema
dataTask[]required
Show child parameters
assignee_idstring
created_atstringrequired
created_bystring
done_atstring
due_onstring
group_keystringrequired
group_type_indexintegerrequired
idstringrequired
notesstringrequired
statusstringrequired
open | done
titlestringrequired
updated_atstringrequired
next_cursorstring
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/tasksScope person:write

Parameters

project_idstringpathrequired
type_indexintegerpathrequired
keystringpathrequired

Request body

application/json
assignee_idstring
due_onstring
notesstring
statusstring
open (default) or done.
titlestringrequired
{
  "assignee_id": "string",
  "due_on": "string",
  "notes": "string",
  "status": "string",
  "title": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/groups/{type_index}/{key}/tasks" \
  -H "Content-Type: application/json" \
  -d '{"assignee_id":"string","due_on":"string","notes":"string","status":"string","title":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "assignee_id": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "done_at": "2024-01-01T00:00:00Z",
  "due_on": "string",
  "group_key": "string",
  "group_type_index": 0,
  "id": "string",
  "notes": "string",
  "status": "string",
  "title": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
assignee_idstring
created_atstringrequired
created_bystring
done_atstring
due_onstring
group_keystringrequired
group_type_indexintegerrequired
idstringrequired
notesstringrequired
statusstringrequired
open | done
titlestringrequired
updated_atstringrequired
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/profiles/groups/{type_index}/{key}

Parameters

project_idstringpathrequired
type_indexstringpathrequired
The group type's name (workspace) or its index 0..=4
keystringpathrequired
eventsintegerquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/profiles/groups/{type_index}/{key}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "cache_ttl_secs": 0,
  "cohorts": [
    {
      "id": "string",
      "name": "string"
    }
  ],
  "distinct_id": "string",
  "enabled": true,
  "events": [
    {
      "event": "string",
      "properties": {},
      "timestamp": "string"
    }
  ],
  "group_key": "string",
  "group_type_index": 0,
  "person_id": "string",
  "properties": {},
  "traits": {},
  "type": "string"
}
Schema
cache_ttl_secsintegerrequired
Seconds the gateway edge may cache this answer.
cohortsProfileCohort[]required
Current cohort memberships (persons only; empty when switched off).
Show child parameters
idstringrequired
namestringrequired
distinct_idstring
enabledbooleanrequired
The project's API switch (members may preview while it is off).
eventsProfileEvent[]required
Newest first, at most events_limit from the last 90 days.
Show child parameters
eventstringrequired
propertiesobjectrequired
Only the allowlisted event properties.
timestampstringrequired
group_keystring
group_type_indexinteger
person_idstring
propertiesobjectrequired
Allowlisted properties only (PII-tagged values stay masked without pii:read).
traitsobjectrequired
Computed trait property -> value (enabled traits of this entity that have a value).
typestringrequired
person or group.
400
404
503
Updated