comments

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-comments"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/57640066-85fb-42a7-8a4b-63b2d97d3d40/social-card.svg?v=3e7ae33eec8b" alt="comments" width="600" height="315"></a>
DELETEhttps://lucidace.com/v1/projects/{project_id}/comments/{id}Scope insight:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

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

Responses

204
404 Unknown, or not your comment
GEThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/commentsScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

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

Responses

200 Page of Comment, oldest first
Example
{
  "data": [
    {
      "author_id": "string",
      "body": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "mentions": [
        "string"
      ],
      "resource_id": "string",
      "resource_type": "string"
    }
  ],
  "next_cursor": "string"
}
Schema
dataComment[]required
Show child parameters
author_idstring
bodystringrequired
created_atstringrequired
idstringrequired
mentionsstring[]required
resource_idstringrequired
resource_typestringrequired
insight | dashboard
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/dashboards/{id}/commentsScope dashboard:read

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
bodystringrequired
mentionsstring[]
User ids to notify; non-members are ignored. At most 20. @member (email name) and @team tokens in body are resolved server-side and notified as well.
{
  "body": "string",
  "mentions": [
    "string"
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/dashboards/{id}/comments" \
  -H "Content-Type: application/json" \
  -d '{"body":"string","mentions":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "author_id": "string",
  "body": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "mentions": [
    "string"
  ],
  "resource_id": "string",
  "resource_type": "string"
}
Schema
author_idstring
bodystringrequired
created_atstringrequired
idstringrequired
mentionsstring[]required
resource_idstringrequired
resource_typestringrequired
insight | dashboard
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/insights/{id}/commentsScope insight:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

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

Responses

200 Page of Comment, oldest first

Same as 200 · GET /v1/projects/{project_id}/dashboards/{id}/comments

404
POSThttps://lucidace.com/v1/projects/{project_id}/insights/{id}/commentsScope insight:read

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
bodystringrequired
mentionsstring[]
User ids to notify; non-members are ignored. At most 20. @member (email name) and @team tokens in body are resolved server-side and notified as well.
{
  "body": "string",
  "mentions": [
    "string"
  ]
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/insights/{id}/comments" \
  -H "Content-Type: application/json" \
  -d '{"body":"string","mentions":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
404
Updated