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.
The API user must be a member of the space and have created (own) the product content post.
Request
Supported Media Types
- application/json
Path Parameters
-
contentId: string
The ID of the content resource
-
mediaId: string
The ID of the media to delete
-
spaceId: string
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
404 Response
product resource not found
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" }