Skip to content
dmitrig edited this page Sep 14, 2010 · 1 revision

Description: Create a new idea marketplace
Format: XML
URL: POST /questions.format
Parameters:

  • question: hash, required: Can contain the following key/value pairs:
    • visitor_identifier: required, string: Represents unique user of the site, (e.g. session id)
    • name: optional, string: The name of the question presented to users
    • local_identifier: optional, string: User id from api client — couldn’t really find what this is used for
    • information: optional, string: Extra information supplied by user during creation
    • ideas: required, string: Newline-separated list of seed ideas

Returns:
Question object

<?xml version="1.0" encoding="UTF-8"?>
<question>
  <active type="boolean">false</active>
  <active-items-count type="integer">0</active-items-count>
  <bloom nil="true"></bloom>
  <choices-count type="integer">0</choices-count>
  <created-at type="datetime">2010-07-01T21:29:16+00:00</created-at>
  <creator-id type="integer">1</creator-id>
  <first-prompt-algorithm-id type="integer" nil="true"></first-prompt-algorithm-id>
  <id type="integer">1</id>
  <inactive-choices-count type="integer">0</inactive-choices-count>
  <information nil="true"></information>
  <it-should-autoactivate-ideas type="boolean">false</it-should-autoactivate-ideas>
  <items-count type="integer">0</items-count>
  <local-identifier nil="true"></local-identifier>
  <name></name>
  <prompts-count type="integer">0</prompts-count>
  <site-id type="integer">1</site-id>
  <tracking nil="true"></tracking>
  <updated-at type="datetime">2010-07-01T21:29:16+00:00</updated-at>
  <uses-catchup type="boolean">true</uses-catchup>
  <votes-count type="integer">0</votes-count>
</question>

Notes:

  • Unclear what local_identifier does, if anything
  • Should probably refactor param passing to use hashes instead (like vote)