Delete media for a product

delete

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

Remove a media file for a product content post in a space.

The API user must be a member of the space and have created (own) the product content post.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

product resource deleted

403 Response

not product creator

404 Response

product resource not found
Back to Top

Examples

Sample Request:

       DELETE swm/rs/v1/spaces/kvIwE2lsFHkAXUPMAWgalAZv/products/700007/media/UL1zNt9iU7tCCde5MfgA1BOM    

Sample Response:

       {"response":{"code":"200.2","developerMessage":"media resource deleted" },
        "mediaId":"UL1zNt9iU7tCCde5MfgA1BOM"
       }    

Possible Error Codes:

       {
          "code":"403.2","developerMessage":"not content creator",
          "code":"404.0","developerMessage":"media resource not found"
       }    
Back to Top