Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop

This commit is contained in:
Barış Soner Uşaklı
2026-02-12 11:51:20 -05:00
2 changed files with 31 additions and 0 deletions

View File

@@ -280,6 +280,8 @@ paths:
$ref: 'write/admin/activitypub/rules.yaml'
/admin/activitypub/rules/{rid}:
$ref: 'write/admin/activitypub/rules/rid.yaml'
/admin/activitypub/rules/order:
$ref: 'write/admin/activitypub/rules/order.yaml'
/admin/activitypub/relays:
$ref: 'write/admin/activitypub/relays.yaml'
/admin/activitypub/relays/{url}:

View File

@@ -0,0 +1,29 @@
put:
tags:
- admin
summary: re-order auto-categorization rules
description: This operation updates the order of some or all auto-categorization rules.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
rids:
type: array
description: A list of rule IDs in the preferred order. Any omitted IDs will remain in the last-known order, which may conflict with the new ordering.
items:
type: string
responses:
'200':
description: rules successfully re-ordered
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
$ref: ../../../components/schemas/admin/rules.yaml#/RulesArray