MCP ability

Copy post(s) to draft

lh-copy-to-draft/copy-post

Duplicates one or more posts, pages, or CPTs as new drafts, copying core fields, meta, and taxonomy terms. Per item, an opaque custom_overrides object can be supplied; it is forwarded as-is to the lh_copy_to_draft_after_duplicate_post action for consumption by other plugins (e.g. an events plugin restoring a date on the copy from its own table). This ability never inspects or acts on custom_overrides itself. Requires edit_posts, and edit rights on each post copied. Pass site_id to act on another site you belong to.

ParameterTypeRequiredDefaultDescription
itemsarray of objectYesOne entry per post to copy.
task_idintegerNoOptional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it.
claim_tokenstringNoOptional. The claim_token from claim-next-task for task_id. Required when task_id is given.
site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.