Update a comment post
put
/swm/rs/v1/spaces/{spaceId}/comments/{contentId}
Update the text comment post (top-level or reply) for a space.
The comment can not be blank.
If top-level comment post, then parentContentId = 0.
The API user must have created the comment post initially.
The comment can not be blank.
If top-level comment post, then parentContentId = 0.
The API user must have created the comment post initially.
Request
Supported Media Types
- application/json
Path Parameters
-
contentId: string
The ID of the content resource
-
spaceId: string
The ID of the space resource
{
"comment":"string" - The updated text comment post
}
"comment":"string" - The updated text comment post
}
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json; charset=UTF-8
200 Response
comment resource updated
403 Response
not comment creator
404 Response
comment resource not found
Examples
Sample Request:
{"comment":"It looks like this one is no longer on sale today."}
Sample Response:
{"response":{"code":"201.0","developerMessage":"comment resource updated"}, "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" }