MCPOutils MCP/Invitations à laisser un avis/move_campaign_recipients

move_campaign_recipients

Writereview-invite:write

Move review-invite recipients to a campaign at a different location — the fix when an import filed contacts under the wrong branch. A recipient's location IS its campaign's location, so this takes a target campaignId; use list_review_campaigns to find campaigns at the location you want. Contacts that have already been messaged cannot be moved (the delivered message belongs to the location it was sent from), and moving pending contacts into a live auto-sending campaign is refused unless you pass allowSend:true, because it would message them immediately. Returns how many moved.

Paramètres
recipientIdsstring[]obligatoire
Ids of the recipients to move (required).
campaignIdstringobligatoire
The campaign to move them into — this is what sets their location (required).
allowSendbooleanfacultatif
Set true to accept that a live auto-sending campaign will message these contacts on arrival. Defaults to false, which refuses that case.
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "move_campaign_recipients",
    "arguments": {
      "recipientIds": [
        "string"
      ],
      "campaignId": "string"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.