WIP! A BB-style forum, on the ATmosphere!
We're still working... we'll be back soon when we have something to show off!
node
typescript
hono
htmx
atproto
1meta {
2 name: Delete Board
3 type: http
4 seq: 15
5}
6
7delete {
8 url: {{appview_url}}/api/admin/boards/:id
9}
10
11params:path {
12 id: {{board_id}}
13}
14
15assert {
16 res.status: eq 200
17 res.body.success: isTrue
18}
19
20docs {
21 Delete a forum board. Pre-flight check refuses with 409 if any posts reference
22 this board. If clear, calls deleteRecord on the Forum DID's PDS.
23 The firehose indexer removes the DB row asynchronously.
24
25 **Requires:** space.atbb.permission.manageCategories
26
27 Path params:
28 - id: Board database ID (bigint as string)
29
30 Returns (200):
31 {
32 "success": true
33 }
34
35 Error codes:
36 - 400: Invalid ID format
37 - 401: Not authenticated
38 - 403: Missing manageCategories permission
39 - 404: Board not found
40 - 409: Board has posts — remove them first
41 - 500: ForumAgent not configured
42 - 503: PDS network error
43}