approve_draft
Approve a review draft and send it to the marketplace, optionally correcting fields first, to resolve a failed draft and publish the listing.
Instructions
Approve a review draft and send it to the marketplace, optionally correcting fields first — the way to resolve a failed draft. Read the draft with list_drafts before calling this, take the new value from the product's own details (its measured size, its actual brand), and confirm with the user before you send: this publishes a real listing. state comes back as listed (live now), pending (accepted, publishes shortly — do not resend) or failed (the marketplace refused again; message says why and draft is the refreshed draft to try once more). Requires Pro plan (API tokens on lower plans are read-only and the request will return a 403 'plan limit' error).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | No | Field name → new value, using the keys from the draft's `fields` (only fields marked `editable: true`). For a `select` field send one of its `options` values; a multi-select field (colours) takes an array of them. Omit to send the draft exactly as it stands. | |
| draft_id | Yes | The draft's `id` from list_drafts. |