Problems API - DELETE a comment
Deletes a comment from the specified problem.
DELETE |
|
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
problemId | string |
The ID of the problem where you want to delete the comment. |
path | required |
commentId | string |
The ID of the comment to delete. |
path | required |
Response format
A successful request doesn't return any content.
Example
In this example, the request deletes the comment with ID 2216103859600298777_1538400720000 from the problem with ID 2307087411653364173_1538400720000V2.
The API token is passed in the Authorization header.
Curl
curl -X DELETE \
https://mySampleEnv.live.dexp.ae/api/v1/problem/details/2307087411653364173_1538400720000V2/comments/2216103859600298777_1538400720000 \
-H 'Authorization: Api-Token abcdefjhij1234567890'
Request URL
https://mySampleEnv.live.dexp.ae/api/v1/problem/details/2307087411653364173_1538400720000V2/comments/2216103859600298777_1538400720000
Response code
204