コメントを削除

delete
https://api.box.com/2.0
/comments/:comment_id/

コメントを完全に削除します。

Request

Bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
12345

コメントのID。

Response

none

コメントが削除された場合は、空のレスポンスを返します。

予期しないクライアントエラー。

delete
コメントを削除
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/comments/12345" \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
.NET
await client.CommentsManager.DeleteAsync(id: "11111");
Java
BoxComment comment = new BoxComment(api, "id");
comment.delete();
Python
client.comment(comment_id='12345').delete()
Node
client.comments.delete('11111')
    .then(() => {
        // deletion successful — no value returned
    });
iOS
client.comments.delete(commentId: "55555") { (result: Result<Void, BoxSDKError>) in
    guard case .success = result else {
        print("Error deleting comment")
        return
    }

    print("Comment deleted")
}