Delete a product post

delete

/swm/rs/v1/spaces/{spaceId}/products/{contentId}

Remove the product content post for a space, as well as any and ALL replies linked to the product post.

The API user must be the space creator (owner) or have initially created the product specified by the contentId, but not necessarily any of the replies it might have.

Request

Supported Media Types
  • application/json
Path Parameters
contentId
Type: string
Required: true
The ID of the content resource
spaceId
Type: string
Required: true
The ID of the space resource

Response

Supported Media Types
  • application/json; charset=UTF-8
200 Response
product resource deleted
403 Response
not product creator or space owner
404 Response
product resource not found

Examples

Sample Request:

       DELETE swm/rs/v1/spaces/cTthHaOtDAz7u3xS5PLZaGa1/products/2269693    

Sample Response:

       {"response":{"code":"200.2","developerMessage":"product resource deleted"},
        "contentId":"2269693"}    

Possible Error Codes:

       {
          "code":"403.1","developerMessage":"not space member",
          "code":"403.2","developerMessage":"not content creator",
          "code":"404.0","developerMessage":"product resource not found"
       }