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
              example: ["be1aee05-2d56-484e-9d83-6212d0f8a033", "81b20d59-85af-44e7-9e52-dadf6ff3c7fb"]
  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
