rename_campaign
Rename a campaign
Action · mcp:act30 appels / 10 minAppelle un fournisseurIdempotentRenomme une campagne, dans VibeSell et chez le fournisseur d'emails, sous le nom que l'utilisateur a donné. Seul le nom change : rien n'est envoyé, mis en pause ni relancé.
Rename a campaign, in VibeSell and at the email provider, under the name the user gave. Only the name changes: nothing is sent, paused or relaunched. Without campaignId it renames the current campaign.L'utilisateur dit
Renomme cette campagne « Dentistes FR — printemps ».
{ "name": "rename_campaign", "arguments": { "name": "Dentists FR — spring" }}Arguments
Section intitulée « Arguments »namestringobligatoire1–120 caractèresThe new name, as the user gave it.
campaignIdstringfacultatifThe campaign to rename, from list_campaigns. Left out: the current one.
Schéma d'entrée
{ "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 120, "description": "The new name, as the user gave it." }, "campaignId": { "description": "The campaign to rename, from list_campaigns. Left out: the current one.", "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" } }, "required": ["name"]}Résultat
Section intitulée « Résultat »Sorte de résultatcampaign_update
kind"campaign_update"outcomestringWhat happened, in a sentence.
campaignobjetidstring — The campaign id: pass it to select_campaign or rename_campaign.namestringstatestring — The campaign state code.stateLabelstring — The campaign state, in words.currentboolean — True for the campaign every tool of this connection works on right now.mailboxesinteger — Sending mailboxes assigned to it.
appUrlstringSchéma de sortie
{ "type": "object", "properties": { "kind": { "type": "string", "const": "campaign_update" }, "outcome": { "type": "string", "description": "What happened, in a sentence." }, "campaign": { "type": "object", "properties": { "id": { "type": "string", "description": "The campaign id: pass it to select_campaign or rename_campaign." }, "name": { "type": "string" }, "state": { "type": "string", "description": "The campaign state code." }, "stateLabel": { "type": "string", "description": "The campaign state, in words." }, "current": { "type": "boolean", "description": "True for the campaign every tool of this connection works on right now." }, "mailboxes": { "type": "integer", "description": "Sending mailboxes assigned to it." } }, "required": ["id", "name", "state", "stateLabel", "current", "mailboxes"], "additionalProperties": false }, "appUrl": { "type": "string" } }, "required": ["kind", "outcome", "campaign", "appUrl"], "additionalProperties": false}Bon à savoir
Section intitulée « Bon à savoir »- Sans campaignId, il renomme la campagne courante ; avec, la campagne à qui list_campaigns a donné cet id.
- Refusé pendant que la campagne est préparée chez le fournisseur ou qu'un autre renommage est en cours : réessayer une minute plus tard. Si le fournisseur ne confirme pas le nouveau nom, rien n'est renommé.
Outils liés
Section intitulée « Outils liés »list_campaignsList your campaigns
create_campaignStart a new campaign
select_campaignSwitch to another campaign