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: Duplicate Theme
3 type: http
4 seq: 5
5}
6
7post {
8 url: {{appview_url}}/api/admin/themes/{{theme_rkey}}/duplicate
9}
10
11assert {
12 res.status: eq 201
13 res.body.uri: isDefined
14 res.body.rkey: isDefined
15 res.body.name: isDefined
16}
17
18docs {
19 Clone an existing theme record with " (Copy)" appended to the name.
20 A fresh TID is generated as the new record key.
21 The firehose indexer creates the DB row asynchronously.
22
23 **Requires:** space.atbb.permission.manageThemes
24
25 Path params:
26 - rkey: Source theme record key (TID)
27
28 Returns (201):
29 {
30 "uri": "at://did:plc:.../space.atbb.forum.theme/newrkey123",
31 "rkey": "newrkey123",
32 "name": "Original Name (Copy)"
33 }
34
35 Error codes:
36 - 401: Not authenticated
37 - 403: Missing manageThemes permission
38 - 404: Source theme not found
39 - 500: ForumAgent not configured (server configuration issue)
40 - 503: ForumAgent not authenticated or PDS network error
41}