Update Draft
upwork__update_draftChange the content of a pending server-stored draft without executing it. Send only the fields being changed; they are merged over the stored params. Returns a fresh preview AND A NEW draft_id that requires new user approval before confirm_draft — the previous draft_id is invalidated, so an edit can never be confirmed under the approval the user gave for the previous content.
WRITE OPERATION — REQUIRES EXPLICIT USER CONFIRMATION. You MUST present full action details and receive explicit approval before executing. Each write requires separate confirmation even if the user said "approve all".
Actions:
update: Change fields on a pending draft. Params: type (required), id (required — the draft_id), content (required object — only the fields being changed, merged over the stored params), mode (optional — 'merge' default, or 'replace' to swap the whole payload), remove_fields (optional array of field paths to delete). The response preview must be shown to the user and explicitly re-approved before confirmation, and confirm_draft must use the NEW draft_id returned here — the id passed in is invalidated by the edit (previous_draft_id in the response names it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The operation to perform | |
| params | No | Action-specific parameters (see allOf branches per action when present) | |
| org_uid | Yes | Your Upwork org_uid from list_accounts |