Get a content post
get
/swm/rs/v1/spaces/{spaceId}/content/{contentId}
Get a specific content post (product or comment) for a space.
The content post may be a top-level post or a reply to a post. If a top-level post, than any and ALL replies linked to the post will also be retrieved.
The content returned will depend on whether the given contentId is for a comment post or a product post, and whether it has any comment replies.
If the space is Private, the API user must be a member of the space, but not necessarily the creator (owner) of the content.
The content post may be a top-level post or a reply to a post. If a top-level post, than any and ALL replies linked to the post will also be retrieved.
The content returned will depend on whether the given contentId is for a comment post or a product post, and whether it has any comment replies.
If the space is Private, the API user must be a member of the space, but not necessarily the creator (owner) of the content.
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
content resource found
403 Response
not space member
404 Response
content resource not found
Examples
Sample Request:
GET swm/rs/v1/spaces/7go4VjU2dK5MkTfHWQHV1l39/content/600009
Sample Response:
{"response":{"code":"200.0","developerMessage":"content resource found" }, "mediaId":"7DkODhd01QcFsXCPcHhQbeiL", "mediaUrl": "/preview/media/product/AMA1iqn08Jz8QGqG/Topo3CqoDPchgkK1mMxEgubY/7DkODhd01QcFsXCPcHhQbeiL.jpg", "productProductId": "xprod2041", "productDesiredPriority": "2", "productCurrencyCode": "USD", "creatorMediaUrl": "", "creatorId": "nNGCePPATZMzzpCm", "productVariantOptions": "[]", "productLinkedProducts": "[]", "productDesiredQuantity": "1", "contentId": "600009", "creatorLastName": "Doe", "creatorFirstName": "John", "productSalePrice": "", "productSkuId": "xsku2041", "replies": [ { "creatorMediaUrl": "", "creatorId": "nNGCePPATZMzzpCm", "dateCreated": "2016-12-27T19:27:47.141Z", "comment": "This looks comfortable!", "creatorLastName": "John", "contentId": "700005", "creatorFirstName": "Doe" }, ], "productTitle": "Soccer Cushion Chair", "productUrl": "/soccer-cushion-chair/product/xprod2041", "dateCreated": "2016-12-20T17:31:55.835Z", "productPrice": "79" }
Possible Error Codes:
{ "code":"404.0","developerMessage":"content resource not found", "code":"403.1","developerMessage":"not space memeber" }