drafts

Save a draft. PUT /v1/drafts/{id} updates one; DELETE removes it.

post/v1/drafts

Request

  • Base URL: https://api.50heads.com
  • URL: https://api.50heads.com/v1/drafts
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://auth.50heads.com/authorize, token URL https://auth.50heads.com/token; client credentials, token URL https://auth.50heads.com/token, scopes: questions:write)

Request body

type'single_choice' | 'multi_choice' | 'ab_image' | 'pairwise' | 'scale_1_5' | 'ranking' | 'yes_no' | 'yes_mostly_no' | 'free_text' | 'click_test' | 'reaction' | 'rate_each' required
textstring
contextstring
languagestring
neitherboolean
ninteger
rushboolean
scheduledForstring date-time
publicResultsboolean
reason'off' | 'optional' | 'required'
contentFlag'none' | 'medical' | 'violence' | 'distressing' | 'alcohol_gambling' | 'political'
interestAudienceIdstring
answeredBy'heads' | 'private'
shownAsstring

Response

OK

idstring required
updatedAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.