Skip to main content

kobana dashboards comments

Commands of kobana dashboards comments. Every global option (Global options) applies here.

CommandHTTPDescription
comments listGET /v1/commentsList comments
comments createPOST /v1/commentsCreate comment
comments getGET /v1/comments/{id}Get comment
comments deleteDELETE /v1/comments/{id}Delete comment

comments list​

List comments

kobana dashboards comments list [OPTIONS]

GET /v1/comments

The comments of a tenant's conversation (tenant_id or portal_user_id) or, without either, of every conversation of the workspace. Newest first, paginated.

Query parameters

NameTypeRequiredDescription
pageintegernoPage (starts at 1). Default: 1.
per_pageintegernoItems per page. Default: 20. Maximum: 100.
sort_bystringnoSort field. Default depends on the resource.
sort_orderstringnoSort direction. Default: desc. Values: asc, desc.
tenant_idstringnoTenant ID of the portal users who own the conversation — every user of the same tenant sees the same comments. Give this or portal_user_id.
portal_user_idstringnoA portal user (id or external_id): the conversation of their tenant is the one meant (a user without a tenant has a conversation of their own). Give this or tenant_id.
internalstringnotrue = internal notes only; false = only what the portal shows. Values: true, false.
author_typestringnoOnly comments written by portal_user (portal user), member (team member) or api. Values: portal_user, member, api.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Comments.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

comments create​

Create comment

kobana dashboards comments create [OPTIONS]

POST /v1/comments

Adds a comment to a tenant's conversation, on behalf of the team. Every portal user of that tenant sees it in the Comments block — unless internal is true.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
bodystringyesThe message (up to 5000 characters).
tenant_idstringnoTenant ID of the portal users who own the conversation — every user of the same tenant sees the same comments. Give this or portal_user_id.
portal_user_idstringnoA portal user (id or external_id): the conversation of their tenant is the one meant (a user without a tenant has a conversation of their own). Give this or tenant_id.
internalbooleannoInternal note: only the team sees it (dashboard, API, MCP); the portal never shows it.
author_namestringnoName shown next to the message. On create, it defaults to the token operator's e-mail or "Equipe".

More fields and nested objects: kobana schema dashboards.comments.create.

Responses

HTTPDescription
201Comment created.
400Request body failed validation.
404Resource not found in the current organization.
422Request body failed validation.

comments get​

Get comment

kobana dashboards comments get [ID] [OPTIONS]

GET /v1/comments/{id}

One comment.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The comment.
404Resource not found in the current organization.

comments delete​

Delete comment

kobana dashboards comments delete [ID] [OPTIONS]

DELETE /v1/comments/{id}

Removes the comment from the conversation (soft delete): it leaves the portal and the dashboard for everyone.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Comment deleted.
404Resource not found in the current organization.