Delete a comment post
delete
/swm/rs/v1/spaces/{spaceId}/comments/{contentId}
Remove a text comment post (top-level or reply) for a space, as well as any and ALL comment replies linked to the comment post.
The API user must have initially created the comment post specified by the contentId or be the space creator (owner), but not necessarily the creator of any comment replies it might have.
The API user must have initially created the comment post specified by the contentId or be the space creator (owner), but not necessarily the creator of any comment replies it might have.
Request
Supported Media Types
- application/json
Path Parameters
-
contentId: string
The ID of the content resource
-
spaceId: string
The ID of the space resource
Response
Supported Media Types
- application/json; charset=UTF-8
200 Response
comment resource deleted
403 Response
not comment creator or space owner
404 Response
comment resource not found
Examples
Sample Request:
DELETE swm/rs/v1/spaces/cTthHaOtDAz7u3xS5PLZaGa1/comments/2269693
Sample Response:
{"response":{"code":"200.2","developerMessage":"comment resource deleted"}, "contentId":"2083924"}
Possible Error Codes:
{ "code":"403.1","developerMessage":"not space member", "code":"403.2","developerMessage":"not content creator", "code":"404.0","developerMessage":"comment resource not found" }