WhatsApp — Reset group invite link
TL;DR
About
By hand, an admin opens the group info, taps Invite via link, then Reset link and confirms. This does the same in WhatsApp Web, which helps when you look after several groups or want an agent to handle it on request. Pass the group's exact display name, for example "Sunday Long Run 10k", and you get back group, oldLink and newLink. The old chat.whatsapp.com URL stops working once the reset goes through and WhatsApp offers no undo, so oldLink is only a record of what to search for and replace in posts and bios. The run waits until the link shown in the panel actually changes before it returns, and it clicks nothing further if the confirmation dialog does not hold the expected two buttons. You must be an admin of the group and have WhatsApp Web linked in the browser. Each run handles one group.
Input
name requiredGroup name, matched exactly against the group's display name. You must be an admin of the group to reset its invite link.
Output
group requirednewLink requiredThe invite link after the reset. Any previously shared link stops working.
oldLink requiredThe invite link as it was before the reset.
Example output
Shape only: placeholder values generated from the output schema, not a real run.
{
"group": "…",
"newLink": "…",
"oldLink": "…"
}