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
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

product resource deleted

403 Response

not product creator or space owner

404 Response

product resource not found
Back to Top

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