Edit account
campaignstack_edit_accountEdit one connected LinkedIn account. Use operation=set_timezone with an IANA timezone to move automation hours and budget days; null restores the country default. Use operation=set_owner_workspace to change the workspace that pays for maintenance/watchers. Use operation=set_watcher to turn the account's connection watcher, message watcher, own-posts watcher or invitation hygiene on or off (state is in campaignstack_get_accounts include.maintenance): name the account and kind and get a yes first, because enabling a watcher starts drafting outbound messages for review. The first enable creates the watcher and its review-first workflow, later calls pause or resume it; one watcher per kind per account across all workspaces (DUPLICATE_*_EXTERNAL means another workspace runs it; it has to be turned off there first) and it needs a live session (AGENT_ACCOUNT_UNAVAILABLE). Use operation=delete only after naming the account and getting explicit confirmation: delete removes the account from every workspace and clears its CampaignStack session/proxy/budgets/credentials, unlike campaignstack_edit_workspace_accounts unlink which only removes workspace access. With platform google, operation=set_scheduling_hours sets the hours meetings are offered in, which also bound when campaign email sends; it needs a person key and only changes a Google account that person connected.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"platform": "<platform>",
"operation": "<operation>"
},
"name": "campaignstack_edit_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | google only takes set_scheduling_hours; every other operation is LinkedIn. | |
| accountId | No | Connected account (LinkedIn account ID). Omit it to default to the workspace's only LinkedIn account that is ready; with several, the error lists them (id and name) so you can ask the person which one. Always required to delete. With platform google, the Google account ID, same default rule. | |
| operation | Yes | ||
| workspaceId | No | Workspace ID. Omit it when this connection reaches one workspace: a workspace key (cs_) is bound to its own, and a user key (csu_) or connected app whose person belongs to exactly one workspace defaults to that one. Required only when the person belongs to several; the error then lists them, and campaignstack_whoami reports them too. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| item | No | ||
| results | No | ||
| warning | No | ||
| nextStep | No |