Get a comment post
get
/swm/rs/v1/spaces/{spaceId}/comments/{contentId}
Retrieve a text comment post (top-level or reply) for a space
If a top-level comment, then the response will have parentContentId = 0.
If a reply comment, the the replies object in the response will be empty.
If space is Private, then the API user must be a member of the space, but not necessarily the creator of the comment.
If a top-level comment, then the response will have parentContentId = 0.
If a reply comment, the the replies object in the response will be empty.
If space is Private, then the API user must be a member of the space, but not necessarily the creator of the comment.
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 found
403 Response
not space member
404 Response
comment resource not found
Examples
Sample Request:
GET swm/rs/v1/spaces/cTthHaOtDAz7u3xS5PLZaGa1/comments/2083924
Sample Response:
{"response":{"code":"200.0","developerMessage":"comments resource found"},
"contentId":"2083924",
"comment":"It looks like this one is on sale today.",
"creatorFirstName":"Jim",
"creatorLastName":"Smith",
"creatorId":"2082990",
"dateCreated":"2016-12-19T16:09:45.064Z",
"parentContentId":"0",
"replies":
[
]
}
Possible Error Codes:
{
"code":"403.1","developerMessage":"not space member",
"code":"404.0","developerMessage":"comment resource not found"
}