roles
PUT
https://lucidace.com /v1/orgs/{org_id}/members/{user_id}/role Scope roles:writeParameters
org_idstringpathrequireduser_idstringpathrequiredRequest body
application/json
role_idstringrequired{
"role_id": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/orgs/{org_id}/members/{user_id}/role" \
-H "Content-Type: application/json" \
-d '{"role_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
409 would leave the org without an owner
GET
https://lucidace.com /v1/orgs/{org_id}/roles Scope roles:readParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/roles"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of RoleRow (built-ins first)
Example
{
"data": [
{
"builtin": true,
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"name": "string",
"permissions": {}
}
],
"next_cursor": "string"
}Schema
dataRoleRow[]requiredShow child parameters
builtinbooleanrequiredcreated_atstringrequiredidstringrequirednamestringrequiredpermissionsobjectrequired{resource: none|read|write|admin}next_cursorstring404
POST
https://lucidace.com /v1/orgs/{org_id}/roles Scope roles:writeParameters
org_idstringpathrequiredRequest body
application/json
namestringrequiredpermissionsobjectrequired{resource: none|read|write|admin}; resources: insight, dashboard, replay, flag, experiment, survey, cohort, person, connector, settings, members, billing, pii, toolbar.{
"name": "string",
"permissions": {}
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/roles" \
-H "Content-Type: application/json" \
-d '{"name":"string","permissions":{}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"builtin": true,
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"name": "string",
"permissions": {}
}Schema
builtinbooleanrequiredcreated_atstringrequiredidstringrequirednamestringrequiredpermissionsobjectrequired{resource: none|read|write|admin}400
403
404
409
GET
https://lucidace.com /v1/orgs/{org_id}/roles/{id} Scope roles:readParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/roles/{id}"TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/orgs/{org_id}/roles/{id} Scope roles:writeParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/roles/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404 unknown role, or a built-in
409 still assigned
PATCH
https://lucidace.com /v1/orgs/{org_id}/roles/{id} Scope roles:writeParameters
org_idstringpathrequiredidstringpathrequiredRequest body
application/json
namestringrequiredpermissionsobjectrequired{resource: none|read|write|admin}; resources: insight, dashboard, replay, flag, experiment, survey, cohort, person, connector, settings, members, billing, pii, toolbar.{
"name": "string",
"permissions": {}
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/orgs/{org_id}/roles/{id}" \
-H "Content-Type: application/json" \
-d '{"name":"string","permissions":{}}'TypeScript
Python
Go
PHP
Ruby
Java
PUT
https://lucidace.com /v1/projects/{project_id}/members/{user_id}/role Scope adminOverride one member's role in one project (e.g. replay access for a single product).
Parameters
project_idstringpathrequireduser_idstringpathrequiredRequest body
application/json
role_idstringnull clears the override.{
"role_id": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/members/{user_id}/role" \
-H "Content-Type: application/json" \
-d '{"role_id":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/roles Scope settings:readThe roles of the project's org, for project-scoped clients (MCP `list_roles`): the same read permission as the project member list, so nobody learns roles of an org they cannot see.
Parameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/roles"TypeScript
Python
Go
PHP
Ruby
Java
Updated