Drafts

Create a market draft

Changed on

Creates a fresh editing draft (optionally a template) owned by the authenticated user.

post/drafts

Request

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

Request body

categorystring
descriptionstring
graduationWindowSecondsnumber
intendedCreatorAddressstring nullable
isTemplateboolean
liquidityParameternumber
openingProbabilitynumber
outcomeNostring
outcomeYesstring
questionstring
resolutionCriteriastring
resolutionSourcesstring
resolutionUrlstring
resolutionWindowSecondsnumber

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