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 Theme
3 type: http
4 seq: 3
5}
6
7delete {
8 url: {{appview_url}}/api/admin/themes/{{theme_rkey}}
9}
10
11assert {
12 res.status: eq 200
13 res.body.success: eq true
14}
15
16docs {
17 Delete a theme record. Fails with 409 if the theme is currently set as
18 the defaultLightTheme or defaultDarkTheme in the theme policy.
19
20 **Requires:** space.atbb.permission.manageThemes
21
22 Path params:
23 - rkey: Theme record key (TID)
24
25 Returns (200):
26 {
27 "success": true
28 }
29
30 Error codes:
31 - 401: Not authenticated
32 - 403: Missing manageThemes permission
33 - 404: Theme not found
34 - 409: Theme is the current defaultLightTheme or defaultDarkTheme — update theme policy first
35 - 500: ForumAgent not configured (server configuration issue)
36 - 503: ForumAgent not authenticated or PDS network error
37}