Update Redirect

A redirect points at the wrong place, or you want to switch it off without deleting it.

redirects/update-redirect changes an existing redirect by id — its target, HTTP code, action, group, title or enabled state — touching only the fields you pass.

At a glance

Abilityredirects/update-redirect
ToolsetRedirection — toolset/redirection
GroupRedirection
RequiresRedirection, active on the site
Capabilitymanage_options
SafetyWrites data — reversible
RepeatableIdempotent — setting the same values again changes nothing
Ships inAcrossAI Abilities Manager 0.0.43 and later

How it works

Pass the redirect’s id and the fields to change. It reads the current redirect first and merges your changes onto it, so a partial call can never blank the fields it did not mention.

To enable or disable a redirect, pass enabled true or false. To move it, pass a new group_id. Retarget it with target, or change the action_code.

Input

NameTypeRequiredWhat it is
idintegerYesThe redirect id to update.
sourcestringNoNew source URL or path.
targetstringNoNew target URL.
action_typestringNoChange the action (url, error, pass, random, nothing).
action_codeintegerNoChange the HTTP status code.
group_idintegerNoMove the redirect to another group.
titlestringNoChange the human label.
regexbooleanNoWhether the source is a regular expression.
enabledbooleanNoEnable (true) or disable (false).

What comes back

NameTypeWhat it is
idintegerThe redirect’s id.
redirectobjectThe redirect after the change.
successbooleanWhether the call completed.
messagestringA one-line summary suitable for showing a human.
error_codestringPresent only on failure, such as no redirect with that id.

Example

Ask your assistant:

Disable redirect 42.

It resolves to one call:

{
  "ability": "redirects/update-redirect",
  "parameters": {
    "id": 42,
    "enabled": false
  }
}

Worth knowing

  • Only the fields you pass change; everything else is left exactly as it was.
  • Reversible — disabling a redirect keeps it, so you can switch it back on. The destructive remove is a separate ability.
  • Needs the Redirection plugin active; without it you get a clear “not active” message.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading