Get a product post
get
/swm/rs/v1/spaces/{spaceId}/products/{contentId}
Get a product content post for a space.
If space is Private, then the API user must be a member of the space, but not necessarily the creator (owner) of the content.
If space is Private, then 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
ID of the content resource
-
spaceId: string
ID of the space resource
Response
Supported Media Types
- application/json; charset=UTF-8
200 Response
product resource found
403 Response
not space member
404 Response
product resource not found
Examples
Sample Request:
GET swm/rs/v1/spaces/cTthHaOtDAz7u3xS5PLZaGa1/products/2269693
Sample Response:
{ "response":{"code":"200.0","developerMessage":"content resource found"}, "mediaId":"56qQTByXWnXgUQscxdHWdJbj", "mediaUrl":"/media/product/6qQTByXWnXgUQscxdHWdJbj.jpg", "productProductId":"camcorder_1", "productDesiredPriority":"", "productCurrencyCode":"USD", "creatorMediaUrl":"", "creatorId":"6FA2ierktBU5D7Al", "productVariantOptions":" [ {"optionName":"color", "optionValue":"Black", "optionId":"color", "optionValueId":0} ]", "productDesiredQuantity":"1", "contentId":"2269693", "creatorLastName":"Smith", "creatorFirstName":"Jim", "productSalePrice":"596", "productSkuId":"camcordersku_1_2", "replies": [ {"creatorMediaUrl":"", "creatorId":"6FA2ierktBU5D7Al", "dateCreated":"2016-12-16T21:37:28.660Z", "comment":"I like this one the best.", "creatorLastName":"Jones", "contentId":"2071012", "creatorFirstName":"Sarah"} ], "productTitle":"Samsung - F90BN HD Camcorder", "productUrl":"/samsungf90bn-hd-camcorder/product/camcorder_1", "dateCreated":"2016-12-16T21:13:41.327Z", "productPrice":"699.99" }
Possible Error Codes:
{ "code":"403.1","developerMessage":"not space member", "code":"404.0","developerMessage":"product resource not found" }