Skip to content

Delete a comment where the provider supports it

PubNio API inbox.comments.delete: delete a comment where the provider supports it. Request fields, examples in five clients, errors, and idempotency.

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: InboxDeleted with deleted, 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

Type to search…

↑↓ navigate↵ selectEsc close