projects

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-projects"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/6dd83cdf-cf7d-413c-ae5f-0a45491e2122/social-card.svg?v=3e7ae33eec8b" alt="projects" width="600" height="315"></a>
PATCHhttps://lucidace.com/v1/projects/{project_id}Scope settings:write

Parameters

project_idstringpathrequired

Request body

application/json
ai_enabledboolean
Per-project AI kill switch lc-ai checks before every model call (refused on under hipaa).
company_enabledboolean
Identify the company behind visitor IPs (operator MMDB or provider) and link events to a company group with $company_* properties (P-H8, default off; never applied under hipaa).
compliance_profilestring
standard | hipaa. hipaa forces ip_capture off, AI off, the replay masking floor on, and clamps retention to 365 / 30 days; it needs an audit sink.
fiscal_year_start_monthinteger
1 (January) to 12 (December).
geo_enabledboolean
Resolve location from the IP at ingest (default on). Off: no $country / $city / ... are added.
group_labelstring
Group in the project switcher, at most 64 characters; "" clears.
ip_captureboolean
Keep the client IP as $ip on events (default off; refused under hipaa).
ip_truncateboolean
With ip_capture on, store the address truncated (IPv4 /24, IPv6 /48).
logo_urlstring
https:// image URL; "" clears.
namestring
regionstring
Never writable: a project's region is its org's and data does not move. Sending a different value is a 409 (region-locked under the hipaa profile).
replay_mask_floorboolean
Mask replay text server-side whatever the SDK settings say (forced on under hipaa).
replay_retention_daysinteger
1 to 3650 (at most 30 under the hipaa profile).
retention_daysinteger
1 to 3650.
tagsarray
At most 20 tags of 1 to 32 characters (lowercased, de-duplicated).
timezonestring
IANA timezone used for bucketing, e.g. Europe/Berlin.
week_startinteger
0 (Sunday) to 6 (Saturday).
{
  "ai_enabled": true,
  "company_enabled": true,
  "compliance_profile": "string",
  "fiscal_year_start_month": 0,
  "geo_enabled": true,
  "group_label": "string",
  "ip_capture": true,
  "ip_truncate": true,
  "logo_url": "string",
  "name": "string",
  "region": "string",
  "replay_mask_floor": true,
  "replay_retention_days": 0,
  "retention_days": 0,
  "tags": [
    "string"
  ],
  "timezone": "string",
  "week_start": 0
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}" \
  -H "Content-Type: application/json" \
  -d '{"ai_enabled":true,"company_enabled":true,"compliance_profile":"string","fiscal_year_start_month":0,"geo_enabled":true,"group_label":"string","ip_capture":true,"ip_truncate":true,"logo_url":"string","name":"string","region":"string","replay_mask_floor":true,"replay_retention_days":0,"retention_days":0,"tags":["string"],"timezone":"string","week_start":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "ai_enabled": true,
  "company_enabled": true,
  "compliance_profile": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "fiscal_year_start_month": 0,
  "geo_enabled": true,
  "group_label": "string",
  "id": "string",
  "ip_capture": true,
  "ip_truncate": true,
  "is_test": true,
  "logo_url": "string",
  "name": "string",
  "org_id": "string",
  "region": "string",
  "replay_mask_floor": true,
  "replay_retention_days": 0,
  "retention_days": 0,
  "slug": "string",
  "tags": [
    "string"
  ],
  "timezone": "string",
  "week_start": 0
}
Schema
ai_enabledbooleanrequired
Per-project AI kill switch; lc-ai makes no model call when false.
company_enabledbooleanrequired
Identify the company behind visitor IPs and link events to a company group (P-H8, default off).
compliance_profilestringrequired
standard | hipaa. HIPAA forces the privacy floors below on.
created_atstringrequired
fiscal_year_start_monthintegerrequired
1 = January .. 12 = December.
geo_enabledbooleanrequired
Resolve $country / $region / $city / $timezone / lat-lon from the IP (default on).
group_labelstring
Free-form group shown in the project switcher, e.g. Mobile.
idstringrequired
ip_capturebooleanrequired
Keep the client IP ($ip) on events. Always false under HIPAA.
ip_truncatebooleanrequired
With ip_capture on, keep the address with its host part zeroed (IPv4 /24, IPv6 /48).
is_testbooleanrequired
Sandbox project: excluded from billing metering.
logo_urlstring
namestringrequired
org_idstringrequired
regionstringrequired
replay_mask_floorbooleanrequired
Replay text is masked server-side whatever the SDK settings say.
replay_retention_daysintegerrequired
retention_daysintegerrequired
slugstringrequired
tagsstring[]required
timezonestringrequired
week_startintegerrequired
0 = Sunday .. 6 = Saturday.
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/access-policyScope settings:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/access-policy"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "default": "string",
  "managed_by": "string",
  "resources": {}
}
Schema
defaultstring
member (every org member, by role) or none (only members added to the project with a project role, plus admins). Default member.
managed_bystring
terraform when the policy is owned by code (P-M24): the app shows it locked and refuses edits (409) that do not carry the marker, unless they pass force.
resourcesobject
Per-resource level for plain members: none, read or write, keyed by resource (insight, dashboard, replay, flag, experiment, cohort, person, connector).
404
PUThttps://lucidace.com/v1/projects/{project_id}/access-policyScope admin

Parameters

project_idstringpathrequired

Request body

application/json

Who reaches a project and what plain members may do in it. Org owners and admins always have full access; custom roles and per-project member roles still apply on top of the defaults.

defaultstring
member (every org member, by role) or none (only members added to the project with a project role, plus admins). Default member.
managed_bystring
terraform when the policy is owned by code (P-M24): the app shows it locked and refuses edits (409) that do not carry the marker, unless they pass force.
resourcesobject
Per-resource level for plain members: none, read or write, keyed by resource (insight, dashboard, replay, flag, experiment, cohort, person, connector).
{
  "default": "string",
  "managed_by": "string",
  "resources": {}
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/access-policy" \
  -H "Content-Type: application/json" \
  -d '{"default":"string","managed_by":"string","resources":{}}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/access-rules/{kind}Scope settings:read

Parameters

project_idstringpathrequired
kindstringpathrequired
property | warehouse_source | warehouse_table | warehouse_view

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/access-rules/{kind}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
[
  {
    "allowed_roles": [
      "string"
    ],
    "allowed_users": [
      "string"
    ],
    "kind": "string",
    "target": "string",
    "updated_at": "2024-01-01T00:00:00Z"
  }
]
Schema
allowed_rolesstring[]required
Roles (admin | member | viewer | billing) that still see the values; owners always do.
allowed_usersstring[]required
kindstringrequired
targetstringrequired
updated_atstringrequired
404
PUThttps://lucidace.com/v1/projects/{project_id}/access-rules/{kind}/{target}Scope admin

Parameters

project_idstringpathrequired
kindstringpathrequired
targetstringpathrequired

Request body

application/json
allowed_rolesstring[]
Roles that still see the target (admin | member | viewer | billing); owners always do.
allowed_usersstring[]
Users that still see the target whatever their role.
{
  "allowed_roles": [
    "string"
  ],
  "allowed_users": [
    "string"
  ]
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/access-rules/{kind}/{target}" \
  -H "Content-Type: application/json" \
  -d '{"allowed_roles":["string"],"allowed_users":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "allowed_roles": [
    "string"
  ],
  "allowed_users": [
    "string"
  ],
  "kind": "string",
  "target": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}
Schema
allowed_rolesstring[]required
Roles (admin | member | viewer | billing) that still see the values; owners always do.
allowed_usersstring[]required
kindstringrequired
targetstringrequired
updated_atstringrequired
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/access-rules/{kind}/{target}Scope admin

Parameters

project_idstringpathrequired
kindstringpathrequired
targetstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/access-rules/{kind}/{target}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/hidden-dataScope insight:read

Parameters

project_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/hidden-data"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "properties": [
    "string"
  ],
  "warehouse_sources": [
    "string"
  ],
  "warehouse_tables": [
    "string"
  ],
  "warehouse_views": [
    "string"
  ]
}
Schema
propertiesstring[]required
warehouse_sourcesstring[]required
warehouse_tablesstring[]required
warehouse_viewsstring[]required
404
POSThttps://lucidace.com/v1/projects/{project_id}/moveScope admin

Custom project roles, team grants, grants to non-members of the target org, notifications and cross-project views that list the project are dropped; usage history and the audit chain stay.

Parameters

project_idstringpathrequired

Request body

application/json
org_idstringrequired
The org to move the project into.
{
  "org_id": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/move" \
  -H "Content-Type: application/json" \
  -d '{"org_id":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
409 Different region
GEThttps://lucidace.com/v1/projects/{project_id}/permissions

Parameters

project_idstringpathrequired

Code samples

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

Responses

200
Example
{
  "admin": true,
  "connector_read": true,
  "connector_write": true,
  "org_id": "string",
  "write": true
}
Schema
adminbooleanrequired
Can change project settings (admins and owners): AI memory, SDK settings, keys.
connector_readbooleanrequired
Can read connectors, their runs and logs (the connector:read scope for keys); lc-connectors asks.
connector_writebooleanrequired
Can create and change connectors (the connector:write scope for keys); lc-connectors asks.
org_idstringrequired
writebooleanrequired
Can create and edit project objects (checked on insights).
404

Updated