update_plan
Partial update of a plan: mutable fields and stage transitions.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
team_id | integer | Yes | — | Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions. |
plan_uuid | string | Yes | — | Required. UUID of the plan to update. |
title | string | No | — | Update plan title (1-200 chars). |
description | string | No | — | Update plan description. |
prompt | string | No | — | Update the content prompt (replaces the prompt text directly, including template text on a playbook step). |
blueprint_id | string | No | — | Update blueprint association — accepts a blueprint UUID (from list_blueprints) or integer id. null clears it. |
project_id | string | No | — | Update project association. null is ignored; pass a new value to change it. |
category_id | integer | No | — | Update category association. null is ignored; pass a new value to change it. |
due_date | string | No | — | Update due date (ISO YYYY-MM-DD). null clears it. |
assigned_to | integer | No | — | Reassign to a different team member (integer user ID from `get_current_user_info`). Must be an enabled member of that team. Assigning a private plan to anyone other than the calling user auto-promotes it to team visibility. Refused for changing a custom-workflow step owner. |
visibility | string | No | — | Change the plan's visibility. Creator-only — non-creators get InputError. |
reference_document_ids | array of string | No | — | REPLACES full set of reference doc associations (documents and context items) with a non-empty array; existing cycle step links (content_type "plan") are kept unless builds_on_plan_ids is sent or earlier same-cycle plan UUIDs are included here; any other plan or unknown ID is rejected. [] is ignored, so this cannot clear the set. |
builds_on_plan_ids | array | null | No | — | REPLACES the plan UUIDs of earlier same-cycle steps this step builds on (cycle step links, content_type "plan" in reference_documents) while keeping existing reference documents. Self, later and out-of-cycle plans are rejected. Pass [] or null to clear step links; omit to keep existing step links. |
context_collection_ids | array of integer | No | — | REPLACES full set of context collection associations. Pass [] to clear; null is ignored. Newly added IDs must be readable by you. |
targeting_dimension_ids | array of integer | No | — | REPLACES full set of targeting dimension associations. Pass [] to clear; null is ignored. Newly added IDs must belong to the team. |
generation_settings | object | null | No | — | Generation source settings: { use_cycle_source?: boolean, calls_source?: object | null }. REPLACES the whole generation_settings object (call get_plan first to preserve existing keys); omit to keep, or pass null to clear. When use_cycle_source is true on a playbook cycle step, generation also sees a live snapshot of the cycle (topic/details, variables, anchor, and team-visible steps' title, owner, dates, status); private steps are omitted (with a count in the generated document's footer), not other steps' text. |
target_stage | string | No | — | Request a stage transition. Use UNDERSCORE form In_Process. Validated against the allowed-transition map; disallowed transitions return InputError. Allowed: Suggested, Accepted, In_Process, Complete, Dismissed. Complete is refused (409) on workflow steps, which finish automatically when their workflow run succeeds. |
attach_content_id | string (uuid) | No | — | The content_id of an existing document (from list_content or create_content) to attach as this step's output, as if the step had produced it. Content steps only: a checklist, action or dismissed step is refused. A pending step is accepted first and an accepted one moves to In_Process. A step that already has a document needs replace_attached_content (otherwise 409); the old document is kept, never deleted. To detach a document, move the step back to Accepted with target_stage. |
replace_attached_content | boolean | No | — | true = swap the document of a step that already has one when you send attach_content_id. Default false. |
owner_name | string | null | No | — | Playbook steps: a typed owner for the step (an agent, or anyone who is not a team member; max 60 chars), matched to the team's existing spelling case-insensitively. list_playbook_owner_names shows the names in use. Not for an action step. null clears it; choosing a team member with assigned_to also clears it. |
due_time | string | null | No | — | Playbook steps: optional time of day the step is due, "HH:MM" 24-hour, no time zone. Needs a due_date; clearing the date clears the time. null clears it. |
goes_out_time | string | null | No | — | Content steps in a playbook: optional time of day it goes out, "HH:MM", no time zone. Needs the step's goes-out date. null clears it. |
draft_lead_days | integer | No | — | Content steps only: whole calendar days (0-365) before due_date when scheduled auto-generate starts (rejects non-integers and null; defaults to 3 when do_on_date is newly enabled, 0 on existing schedules). Sending draft_lead_days (or schedule_time_zone, title, description, prompt, blueprint_id, project_id, reference_document_ids (even []), builds_on_plan_ids when any link/doc remains, context_collection_ids, targeting_dimension_ids, generation_settings, non-null owner_name, attach_content_id, changing assigned_to, or setting target_stage to Complete or Dismissed) via update_plan turns an enabled auto-generate schedule off (due_date, due_time, goes_out_time, category_id, visibility, owner_name: null, open target_stage without a draft/claim, and builds_on_plan_ids: []/null without docs keep it on). MCP cannot turn auto-generate on (stored lead only; when the owner turns it back on in the app, an unset lead resets to 3, so pick the intended lead there). |
document_update | object | null | No | — | Configure or clear existing-document update mode: `{ mode: "update", target_content_id, review_mode?: "approval" | "direct", instructions? }`, `{ mode: "create" }`, or null to switch back to create mode (setting update mode clears any blueprint_id). |
Input Schema
{
"type": "object",
"required": [
"team_id",
"plan_uuid"
],
"properties": {
"title": {
"type": "string",
"description": "Update plan title (1-200 chars)."
},
"prompt": {
"type": "string",
"description": "Update the content prompt (replaces the prompt text directly, including template text on a playbook step)."
},
"team_id": {
"type": "integer",
"minimum": 1,
"description": "Team id to act in (from initialize instructions or get_current_user_info). Required on external MCP; optional in bound sessions."
},
"due_date": {
"type": "string",
"description": "Update due date (ISO YYYY-MM-DD). null clears it."
},
"due_time": {
"type": [
"string",
"null"
],
"description": "Playbook steps: optional time of day the step is due, \"HH:MM\" 24-hour, no time zone. Needs a due_date; clearing the date clears the time. null clears it."
},
"plan_uuid": {
"type": "string",
"description": "Required. UUID of the plan to update."
},
"owner_name": {
"type": [
"string",
"null"
],
"description": "Playbook steps: a typed owner for the step (an agent, or anyone who is not a team member; max 60 chars), matched to the team's existing spelling case-insensitively. list_playbook_owner_names shows the names in use. Not for an action step. null clears it; choosing a team member with assigned_to also clears it."
},
"project_id": {
"type": "string",
"description": "Update project association. null is ignored; pass a new value to change it."
},
"visibility": {
"enum": [
"private",
"team"
],
"type": "string",
"description": "Change the plan's visibility. Creator-only — non-creators get InputError."
},
"assigned_to": {
"type": "integer",
"description": "Reassign to a different team member (integer user ID from `get_current_user_info`). Must be an enabled member of that team. Assigning a private plan to anyone other than the calling user auto-promotes it to team visibility. Refused for changing a custom-workflow step owner."
},
"category_id": {
"type": "integer",
"description": "Update category association. null is ignored; pass a new value to change it."
},
"description": {
"type": "string",
"description": "Update plan description."
},
"blueprint_id": {
"type": "string",
"description": "Update blueprint association — accepts a blueprint UUID (from list_blueprints) or integer id. null clears it."
},
"target_stage": {
"type": "string",
"description": "Request a stage transition. Use UNDERSCORE form In_Process. Validated against the allowed-transition map; disallowed transitions return InputError. Allowed: Suggested, Accepted, In_Process, Complete, Dismissed. Complete is refused (409) on workflow steps, which finish automatically when their workflow run succeeds."
},
"goes_out_time": {
"type": [
"string",
"null"
],
"description": "Content steps in a playbook: optional time of day it goes out, \"HH:MM\", no time zone. Needs the step's goes-out date. null clears it."
},
"document_update": {
"type": [
"object",
"null"
],
"properties": {
"mode": {
"enum": [
"create",
"update"
],
"type": "string"
},
"review_mode": {
"enum": [
"approval",
"direct"
],
"type": "string",
"description": "approval (default) = hold a pending update proposal for review; direct = apply directly when produced."
},
"instructions": {
"type": [
"string",
"null"
],
"maxLength": 25000,
"description": "Optional update-specific instructions (up to 25,000 characters)."
},
"target_content_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "UUID of the existing document to update."
},
"target_document_id": {
"type": [
"string",
"null"
],
"format": "uuid",
"description": "Input alias for target_content_id."
}
},
"description": "Configure or clear existing-document update mode: `{ mode: \"update\", target_content_id, review_mode?: \"approval\" | \"direct\", instructions? }`, `{ mode: \"create\" }`, or null to switch back to create mode (setting update mode clears any blueprint_id)."
},
"draft_lead_days": {
"type": "integer",
"maximum": 365,
"minimum": 0,
"description": "Content steps only: whole calendar days (0-365) before due_date when scheduled auto-generate starts (rejects non-integers and null; defaults to 3 when do_on_date is newly enabled, 0 on existing schedules). Sending draft_lead_days (or schedule_time_zone, title, description, prompt, blueprint_id, project_id, reference_document_ids (even []), builds_on_plan_ids when any link/doc remains, context_collection_ids, targeting_dimension_ids, generation_settings, non-null owner_name, attach_content_id, changing assigned_to, or setting target_stage to Complete or Dismissed) via update_plan turns an enabled auto-generate schedule off (due_date, due_time, goes_out_time, category_id, visibility, owner_name: null, open target_stage without a draft/claim, and builds_on_plan_ids: []/null without docs keep it on). MCP cannot turn auto-generate on (stored lead only; when the owner turns it back on in the app, an unset lead resets to 3, so pick the intended lead there)."
},
"attach_content_id": {
"type": "string",
"format": "uuid",
"description": "The content_id of an existing document (from list_content or create_content) to attach as this step's output, as if the step had produced it. Content steps only: a checklist, action or dismissed step is refused. A pending step is accepted first and an accepted one moves to In_Process. A step that already has a document needs replace_attached_content (otherwise 409); the old document is kept, never deleted. To detach a document, move the step back to Accepted with target_stage."
},
"builds_on_plan_ids": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "REPLACES the plan UUIDs of earlier same-cycle steps this step builds on (cycle step links, content_type \"plan\" in reference_documents) while keeping existing reference documents. Self, later and out-of-cycle plans are rejected. Pass [] or null to clear step links; omit to keep existing step links."
},
"generation_settings": {
"type": [
"object",
"null"
],
"properties": {
"calls_source": {
"type": [
"object",
"null"
],
"description": "Calls filter ({ from, to, kinds, companies }), {} for all calls, or null."
},
"use_cycle_source": {
"type": "boolean",
"description": "Content steps only: true sees a live snapshot of the cycle (topic/details, variables, anchor, and team-visible steps' title, owner, dates and status); private steps are omitted and the generated document footer states how many were left out, without other steps' text."
}
},
"description": "Generation source settings: { use_cycle_source?: boolean, calls_source?: object | null }. REPLACES the whole generation_settings object (call get_plan first to preserve existing keys); omit to keep, or pass null to clear. When use_cycle_source is true on a playbook cycle step, generation also sees a live snapshot of the cycle (topic/details, variables, anchor, and team-visible steps' title, owner, dates, status); private steps are omitted (with a count in the generated document's footer), not other steps' text."
},
"context_collection_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "REPLACES full set of context collection associations. Pass [] to clear; null is ignored. Newly added IDs must be readable by you."
},
"reference_document_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "REPLACES full set of reference doc associations (documents and context items) with a non-empty array; existing cycle step links (content_type \"plan\") are kept unless builds_on_plan_ids is sent or earlier same-cycle plan UUIDs are included here; any other plan or unknown ID is rejected. [] is ignored, so this cannot clear the set."
},
"targeting_dimension_ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "REPLACES full set of targeting dimension associations. Pass [] to clear; null is ignored. Newly added IDs must belong to the team."
},
"replace_attached_content": {
"type": "boolean",
"description": "true = swap the document of a step that already has one when you send attach_content_id. Default false."
}
}
}Output Schema
{
"type": "object",
"required": [
"plan_uuid",
"stage",
"updated_at",
"link_url"
],
"properties": {
"id": {
"type": "integer"
},
"step": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"optional": {
"type": "boolean"
},
"schedule": {
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
]
},
"due_at": {
"type": [
"integer",
"null"
]
},
"enabled": {
"type": "boolean"
},
"outcome": {
"enum": [
"claimed",
"dispatching",
"started",
"failed",
"unknown",
"skipped",
"cancelled",
"overdue",
"waiting",
"waiting_content",
"invalidated",
null
],
"type": [
"string",
"null"
],
"description": "Schedule outcome: null (pending), waiting_content (a \"Do it on its date\" step is waiting because an earlier content step it builds on has no ready draft yet; retries on its own once that source is ready), waiting (waiting on an earlier checklist or action step; needs explicit produce_plan or generate_cycle_content), overdue (due date passed without running; needs explicit produce_plan or generate_cycle_content), invalidated (a teammate's edit or revoked consent switched automatic start off), cancelled (turned off or reassigned), skipped (step became ineligible for automatic start), claimed (picked up by a scheduler sweep), dispatching (starting execution), started (scheduled run started), failed (start failed with a client error), or unknown (ambiguous start error; check existing work before trying manually)."
},
"time_zone": {
"type": "string"
},
"generate_at": {
"type": [
"integer",
"null"
]
},
"attempted_at": {
"type": [
"integer",
"null"
]
},
"execution_uuid": {
"type": [
"string",
"null"
]
}
},
"description": "Auto-generation schedule state readback. outcome is null (pending), waiting_content (waiting on an earlier content step's draft; retries on its own once ready), waiting (waiting on an earlier checklist or action step), overdue (past due), invalidated (teammate edit or revoked consent switched automatic start off), cancelled (turned off or reassigned), skipped (ineligible), or claimed / dispatching / started / failed / unknown during or after a scheduled run. An overdue or waiting schedule does not auto-generate and needs an explicit generate via produce_plan or generate_cycle_content."
},
"workflow": {
"type": [
"object",
"null"
],
"description": "Present on kind \"workflow\" steps: { workflow_id, inputs, status, run_id, error, ran_at, ran_by }."
},
"do_on_date": {
"type": "boolean"
},
"goes_out_date": {
"type": [
"string",
"null"
]
},
"document_update": {
"type": "object",
"properties": {
"mode": {
"enum": [
"update"
],
"type": "string"
},
"stale": {
"type": "boolean"
},
"last_error": {
"type": [
"string",
"null"
]
},
"can_approve": {
"type": "boolean"
},
"review_mode": {
"enum": [
"approval",
"direct"
],
"type": "string"
},
"instructions": {
"type": [
"string",
"null"
]
},
"last_outcome": {
"enum": [
"applied",
"rejected",
"conflict",
"superseded",
"failed",
"no_changes",
null
],
"type": [
"string",
"null"
]
},
"latest_state": {
"type": [
"string",
"null"
]
},
"target_title": {
"type": [
"string",
"null"
]
},
"pending_state": {
"enum": [
"pending",
"applying",
null
],
"type": [
"string",
"null"
]
},
"pending_summary": {
"type": [
"string",
"null"
]
},
"target_can_open": {
"type": "boolean"
},
"target_link_url": {
"type": [
"string",
"null"
]
},
"latest_update_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"pending_update_id": {
"type": [
"string",
"null"
],
"format": "uuid"
},
"target_content_id": {
"type": [
"string",
"null"
],
"format": "uuid"
}
},
"description": "Present on content steps configured to update an existing document."
},
"draft_lead_days": {
"type": "integer",
"description": "Content steps: whole calendar days (0-365) before due_date when auto-generate starts (defaults to 3 when newly enabled; 0 for existing schedules). Note: sending draft_lead_days (or schedule_time_zone, title, description, prompt, blueprint_id, project_id, reference_document_ids (even []), builds_on_plan_ids when any link/doc remains, context_collection_ids, targeting_dimension_ids, or generation_settings) via update_plan turns an enabled auto-generate schedule off; MCP cannot turn auto-generate on (stored lead only; when the owner turns it back on in the app, an unset lead resets to 3, so pick the intended lead there)."
},
"schedule_time_zone": {
"type": "string"
}
},
"description": "Playbook/schedule step settings including draft_lead_days (content steps: 0-365 whole calendar days) and schedule readback (see schedule.outcome: waiting_content retries on its own once the source draft is ready; overdue or waiting needs an explicit generate; invalidated means a teammate's edit or revoked consent turned automatic start off)."
},
"team": {
"type": "object",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"description": "Team this action applied to."
},
"stage": {
"enum": [
"Suggested",
"Accepted",
"In_Process",
"Complete",
"Dismissed"
],
"type": "string"
},
"title": {
"type": "string"
},
"prompt": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
},
"team_id": {
"type": "integer"
},
"due_date": {
"type": [
"string",
"null"
]
},
"link_url": {
"type": "string",
"format": "uri",
"description": "Shareable deep-link that opens the plans screen with this plan's detail overlay. Give this to the user."
},
"plan_uuid": {
"type": "string"
},
"created_at": {
"type": "integer"
},
"created_by": {
"type": "integer"
},
"project_id": {
"type": [
"string",
"null"
]
},
"updated_at": {
"type": "integer"
},
"visibility": {
"enum": [
"private",
"team"
],
"type": "string",
"description": "private = creator-only; team = visible to all active teammates."
},
"assigned_to": {
"type": "integer"
},
"category_id": {
"type": [
"integer",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"blueprint_id": {
"type": [
"integer",
"null"
]
},
"completed_at": {
"type": [
"integer",
"null"
]
},
"dismissed_at": {
"type": [
"integer",
"null"
]
},
"source_metadata": {
"type": [
"object",
"null"
]
},
"context_collections": {
"type": "array"
},
"generation_settings": {
"type": [
"object",
"null"
],
"description": "Generation source settings ({ use_cycle_source?: boolean, calls_source?: object | null }), or null. use_cycle_source: true gives generation a live snapshot of team-visible cycle steps only (private steps omitted with a footer count)."
},
"produced_content_id": {
"type": [
"string",
"null"
]
},
"reference_documents": {
"type": "array"
},
"targeting_dimensions": {
"type": "array"
}
}
}Instructions
Partial update of a plan: mutable fields and stage transitions. All fields are optional — supply only what you want to change.
Array & object fields:
context_collection_idsandtargeting_dimension_idsreplace the full set ([]clears;nullis ignored). A non-emptyreference_document_idsreplaces reference documents ([]is ignored) while keeping existing cycle step links unlessbuilds_on_plan_idsis sent or earlier same-cycle plan UUIDs are included; self, later, out-of-cycle, and unknown/other-team plan IDs are rejected withInputError. Usebuilds_on_plan_ids([]ornullclears) to replace which earlier steps in the same cycle this step builds on.promptreplaces template text cleanly as plain text.generation_settingsreplaces the whole object (nullclears).
Clearing fields: pass
nullto clearblueprint_id,due_date,owner_name,due_time,goes_out_time,builds_on_plan_ids, orgeneration_settings.nullis ignored forproject_idandcategory_id: to change one of those, pass a new value.draft_lead_daysaccepts whole integers 0–365 and rejectsnull.
Auto-generate (
do_on_date) rules: editingdraft_lead_days,schedule_time_zone,title,description,prompt,blueprint_id,project_id,reference_document_ids(even[]),builds_on_plan_ids(when any link or ref doc remains),context_collection_ids,targeting_dimension_ids,generation_settings, non-nullowner_name,attach_content_id,assigned_to, or transitioning toComplete/Dismissedturns auto-generate off (MCP cannot turn auto-generate on).
Stage transition rules:
Suggested→AcceptedorDismissedAccepted→In_ProcessorDismissedIn_Process→Complete,Accepted, orDismissedComplete→AcceptedorDismissedDismissed→ terminal, no further transitions
Update-mode & workflow
Completegates: workflow steps cannot move toCompletemanually (returns 409; they complete automatically when their workflow run succeeds), anddocument_update.mode: "update"plans/steps require an approved or confirmed-no_changesupdate (with nopendingupdate) before moving toComplete(returns 409).
Output: Updated plan object with all fields (same shape as get_plan, including step.schedule.outcome union).
Links: present link_url to the user exactly as returned — copy it character for character. Never retype, shorten, or rebuild a link or the IDs inside it.