folders

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-folders"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/57a72b6b-99c4-4901-a976-51e39b614712/social-card.svg?v=3e7ae33eec8b" alt="folders" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/foldersScope dashboard:read

Parameters

project_idstringpathrequired

Code samples

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

Responses

200 Array of Folder, by name; restricted folders the caller cannot see are left out
Example
[
  {
    "created_at": "2024-01-01T00:00:00Z",
    "id": "string",
    "name": "string",
    "parent_id": "string",
    "restricted": true
  }
]
Schema
created_atstringrequired
idstringrequired
namestringrequired
parent_idstring
restrictedbooleanrequired
404
POSThttps://lucidace.com/v1/projects/{project_id}/foldersScope dashboard:write

Parameters

project_idstringpathrequired

Request body

application/json
namestringrequired
parent_idstring
{
  "name": "string",
  "parent_id": "string"
}

Code samples

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

Responses

201
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "name": "string",
  "parent_id": "string",
  "restricted": true
}
Schema
created_atstringrequired
idstringrequired
namestringrequired
parent_idstring
restrictedbooleanrequired
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/folders/{id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

204
403
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/folders/{id}Scope dashboard:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
namestring
parent_idstring
Move under another folder; null moves to the top level, absent leaves it.
{
  "name": "string",
  "parent_id": "string"
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/folders/{id}" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","parent_id":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/objects/{rtype}/hidden

Parameters

project_idstringpathrequired
rtypestringpathrequired

Code samples

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

Responses

200 {ids}: objects of this type the caller may not see (services filtering their own lists, e.g. lc-workflows)
404
GEThttps://lucidace.com/v1/projects/{project_id}/objects/{rtype}/{rid}/access

Parameters

project_idstringpathrequired
rtypestringpathrequired
dashboard|insight|folder|flag|experiment|cohort|notebook|action|sql_view|vision_scanner|replay_collection|endpoint|workflow
ridstringpathrequired

Code samples

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

Responses

200
Example
{
  "folder_id": "string",
  "grants": [
    {
      "grantee_id": "string",
      "grantee_kind": "string",
      "level": "string"
    }
  ],
  "managed_by": "string",
  "my_level": "string",
  "owner_id": "string",
  "restricted": true
}
Schema
folder_idstring
grantsGrant[]required
Show child parameters
grantee_idstringrequired
grantee_kindstringrequired
user | team
levelstringrequired
view | edit
managed_bystring
Set when the ACL is owned by code (terraform): the app shows it locked and only a write carrying the same marker, or an explicit takeover, may change it (P-M24).
my_levelstring
What the caller may do per this ACL: edit (unrestricted, owner, org admin or an edit grant) or view. Filled by the route; role permissions still apply on top.
owner_idstring
restrictedbooleanrequired
404
PUThttps://lucidace.com/v1/projects/{project_id}/objects/{rtype}/{rid}/access

Parameters

project_idstringpathrequired
rtypestringpathrequired
dashboard|insight|folder|flag|experiment|cohort|notebook|action|sql_view|vision_scanner|replay_collection|endpoint|workflow
ridstringpathrequired

Request body

application/json
forceboolean
Take over an ACL managed by code (clears or replaces managed_by).
grantsGrant[]
Replaces the grants; at most 100.
Show child parameters
grantee_idstringrequired
grantee_kindstringrequired
user | team
levelstringrequired
view | edit
managed_bystring
terraform when written by the Terraform provider: the ACL then shows "managed by code" and app edits are refused (409) unless they pass force.
restrictedbooleanrequired
{
  "force": true,
  "grants": [
    {
      "grantee_id": "string",
      "grantee_kind": "string",
      "level": "string"
    }
  ],
  "managed_by": "string",
  "restricted": true
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/objects/{rtype}/{rid}/access" \
  -H "Content-Type: application/json" \
  -d '{"force":true,"grants":[{"grantee_id":"string","grantee_kind":"string","level":"string"}],"managed_by":"string","restricted":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
403
404
PUThttps://lucidace.com/v1/projects/{project_id}/objects/{rtype}/{rid}/folder

Parameters

project_idstringpathrequired
rtypestringpathrequired
dashboard|insight
ridstringpathrequired

Request body

application/json
folder_idstring
null takes the object out of its folder.
{
  "folder_id": "string"
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/objects/{rtype}/{rid}/folder" \
  -H "Content-Type: application/json" \
  -d '{"folder_id":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

403
404
Updated