Delete a content post

delete

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

Remove a specific content post (product or comment) for a space.

The content post may be a top-level post or a reply to a post. If a top-level post, than any and ALL replies linked to the post will also be removed.

The API user must be the space creator (owner) or have initially created the comment specified by the contentId, but not necessarily have created 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
content resource deleted
403 Response
not content creator or space owner
404 Response
content resource not found

Examples

Sample Request:

       DELETE swm/rs/v1/spaces/Topo3CqoDPchgkK1mMxEgubY/content/700001    

Sample Response:

       {"response":{"code":"200.2","developerMessage":"content resource deleted"},
        "contentId":"700001"}    

Possible Error Codes:

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