Skip to main content

Comments

The messages of the portal's Comments block, exchanged between the tenant and your team. An internal comment is visible only in the dashboard.

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

Examples​

--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# List comments
kobana dashboards comments list \
--params '{"tenant_id": "TENANT_ID"}' \
--fields "id,author_name,body,created_at"

# Create comment
kobana dashboards comments create \
--json '{"tenant_id": "TENANT_ID", "body": "Recebemos o seu documento."}'

# Delete comment
kobana dashboards comments delete --params '{"id": "COMMENT_ID"}' --dry-run

Next steps​