Communities (Admin)
Get community deletion preview (Admin)
GET
/manage/communities/:id/deletion-previewReturn how much will disappear when the community is deleted, and the organized events that have not ended (which block deletion). Admins only.
| Auth | Login required |
|---|---|
| Available to | Official 4S apps only (other apps' access tokens get 403) |
Path parameters
idstringrequiredCommunity ID.
Response
| Field | Type | Description |
|---|---|---|
counts.members | number | Approved members, including admins. |
counts.messages | number | Chat messages. |
counts.files | number | Files in the chat file library. |
counts.playlists | number | Playlists. |
counts.announcements | number | Announcements. |
counts.exchangedCards | number | People the community exchanged business cards with. |
blockingEvents | { id, title, slug }[] | Organized events that have not ended. Deletion is refused while any remain. |
Request
curl https://api.4s.link/manage/communities/ID/deletion-preview \-H "Authorization: Bearer 4s_at_..."
Example response
{"counts": {"members": 42,"messages": 1280,"files": 15,"playlists": 2,"announcements": 8,"exchangedCards": 30},"blockingEvents": []}