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
-
Type:
stringRequired:trueThe ID of the content resource- spaceId
Type:stringRequired:trueThe ID of the space resource
Body Parameter
{
"comment":"string" - The updated text comment post
}
"comment":"string" - The updated text comment post
}
Root Schema : /paths/~1swm~1rs~1v1~1spaces~1{spaceId}~1comments~1{contentId}/put/parameters/0/schema
Type:
stringResponse
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"
}