Delete a space

delete

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

Remove an existing space, including all the space memberships and all the space content posts.

The API user must have created the space originally (i.e. "owns" the space).

Request

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

Response

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

Examples

Sample Request:

       DELETE swm/rs/v1/spaces/7go4VjU2dK5MkTfHWQHV1l39    

Sample Response:

       {"response":{"code":"200.2","developerMessage":"space resource deleted"},
        "spaceId":"7go4VjU2dK5MkTfHWQHV1l39"}    

Possible Error Codes:

       {
          "code":"403.2","developerMessage":"not space owner",
          "code":"404.0","developerMessage":"space resource not found"
       }