Delete a comment where the provider supports it with DELETE /api/v1/inbox/comments/{commentId}. Requires an API key with the engage scope or a signed-in workspace member.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
commentId |
path | UUID | Yes |
workspaceId |
query | UUID | Yes |
Response
- HTTP 200:
InboxDeletedwithdeleted,actionId.
The OpenAPI document has each field’s type.
Examples
const deleted = await workspace.inbox.deleteComment(commentId);deleted = workspace.inbox.delete_comment(comment_id)curl -X DELETE "https://pubnio.com/api/v1/inbox/comments/$COMMENT_ID?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio inbox comments delete "$COMMENT_ID"async () => {
const commentId = "<commentId>";
const response = await codemode.request({
method: "DELETE",
path: `/api/v1/inbox/comments/${commentId}`,
query: { workspaceId: codemode.workspaceId },
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems every Inbox operation and most operations declare.
Idempotency
No key, so a retried DELETE is not deduplicated. Read the current state before you retry.
Limits
- Field lengths and ranges are in the OpenAPI document.