30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

BuddyBoss Restructure Topic

buddyboss/restructure-topic merges one topic into another, or splits a topic at a chosen reply.

Both rewrite reply parents, and neither can be undone.

Before you run it

Merging moves every reply out of the source topic and the source stops existing as a topic. Splitting moves a reply and all replies after it into a different topic. Neither can be undone by re-running this — the reply parents have been rewritten and there is no record of what they were. Both require confirm_title to match the title of the topic being restructured, checked against the live record. Call buddyboss/get-topic first for the title and the reply count.

At a glance

Abilitybuddyboss/restructure-topic
ToolsetBuddyBoss — toolset/buddyboss
GroupBuddyBoss › Forums
RequiresAcrossAI Pro, plus BuddyBoss Platform active on the site
Capabilitymanage_options
SafetyDestructive and irreversible — merging and splitting rewrite every affected reply’s parent. Requires confirm_title.
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Pro 0.9.16 and later

How it works

A merge moves every reply out of the source topic and into the target. The source stops existing as a topic — it is not trashed, it is consumed.

A split takes a reply and everything after it and moves the lot into a different topic. The original keeps everything before the split point.

In both cases the operation is a bulk rewrite of parent relationships, and nothing records what those relationships were. Re-running does not reverse it; there is no inverse operation to run.

That is why the reply count matters, and why buddyboss/get-topic is the planning step: the count is the number of relationships about to change.

The title confirmation is checked against the live record, which catches both a wrong topic ID and a topic renamed since your read.

Everything reversible lives in buddyboss/act-on-topic — close, sticky, spam and trash. If the goal can be met with one of those, it should be.

Not idempotent.

Input

NameTypeRequiredWhat it is
actionstringYesmerge or split.
topic_idintegerYesThe topic being restructured.
confirm_titlestringYesMust exactly match that topic’s title on the live record.
destination_topic_idintegerFor mergeThe topic to merge into.
reply_idintegerFor splitThe reply to split at.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
topic_idintegerThe topic restructured.
replies_movedintegerHow many replies changed parent.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Merge this duplicate topic into the original.

It resolves to one call:

{
  "ability": "buddyboss/restructure-topic",
  "parameters": {
    "action": "merge",
    "topic_id": 1204,
    "confirm_title": "Scheduled maintenance on Monday",
    "destination_topic_id": 1180
  }
}

Worth knowing

  • A merged source topic is consumed, not trashed.
  • Nothing records the previous reply parents. There is no inverse.
  • The title is checked live, catching renames as well as wrong IDs.
  • Every reversible topic operation is in buddyboss/act-on-topic.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading