Publish a draft to Leboncoin
publish_listingPublishes a confirmed draft as a live Leboncoin ad, requiring explicit user approval before the irreversible action.
Instructions
Publishes a draft as a real, public Leboncoin ad. IRREVERSIBLE. Requires confirm: true, which you may only set after the user has seen the draft and explicitly told you, in that turn, to publish this specific ad. "Looks good" about a draft is not permission to publish. confirm: true is necessary but NOT sufficient: the server independently re-fills the form and re-checks that the draft was validated, that the validation is recent, that nothing is missing, that every photo uploaded, and that Leboncoin has the publish button enabled. It refuses otherwise, and names what stopped it. Read the outcome field. published means confirmed live. publish_failed means Leboncoin visibly refused and nothing was created. publish_unknown means the click went through but no confirmation appeared - the ad MAY be live. On publish_unknown, stop: check my_listings or open Leboncoin yourself. Never retry, or you will create a duplicate public ad.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. Set it only after the user has explicitly approved publishing this specific draft. | |
| draftId | Yes |