Drafts

Clone a draft or market into a new draft

Changed on

The universal clone (ADR 0022): seeds a new editing draft verbatim from one of the caller's drafts or from any indexed market.

post/drafts/clone

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

asTemplateboolean
fromDraftIdstring

Response

Response for status 201

categorystring required
createdAtstring required
descriptionstring required
graduationWindowSecondsnumber required
idstring required
intendedCreatorAddressstring nullable required
isTemplateboolean required
liquidityParameternumber required
openingProbabilitynumber required
outcomeNostring required
outcomeYesstring required
publishedAtstring nullable required
publishedChainIdnumber nullable required
publishedMarketIdstring nullable required
publishedTransactionHashstring nullable required
questionstring required
resolutionCriteriastring required
resolutionSourcesstring required
resolutionUrlstring required
resolutionWindowSecondsnumber required
reviewedAtstring nullable required
status'editing' | 'in_review' | 'changes_requested' | 'rejected' | 'approved' | 'published' required
submittedAtstring nullable required
updatedAtstring required

Changes

    • warning

      added the new openai enum value to the / response property for the response status

    • breaking

      the request property type changed from number to string (media type: application/json)

    • breaking

      the response's property type changed from number to string for status

    • info

      the request property type was generalized from number to string (media type: application/x-www-form-urlencoded)

    • info

      the request property type was generalized from number to string (media type: multipart/form-data)