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.

Request

Supported Media Types
Path Parameters
Body ()
{
"comment":"string" - The updated text comment post
}
Root Schema : schema
Type: string
Back to Top

Response

Supported Media Types

200 Response

comment resource updated

403 Response

not comment creator

404 Response

comment resource not found
Back to Top

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"
       }    
Back to Top