-
Notifications
You must be signed in to change notification settings - Fork 34
questions update
dmitrig edited this page Sep 14, 2010
·
2 revisions
Description: Update existing question
Format: XML
URL: PUT /questions/7.xml?question%5Bit_should_autoactivate_ideas%5D=true
Parameters:
-
question: required, hash: Contains any attributes of the question object that you wish to set
- active: optional, bool: Whether the question is active (visible, usable)
- created_at: optional, string: When the question was created. eg. “2010-07-01 23:48:00”
- creator_id: optional, int: ID of visitor that created the question
- information: optional, string: Optional extra information provided at question creation
- it_should_autoactivate_ideas: optional, bool: Whether user-submitted ideas should be automatically activated
- local_identifier: optional, string: Extra identifier used by client
- name: optional, string: Human-readable name of question
- site_id: optional, int: API user ID
- tracking: optional, string: Space for extra information stored by client
- updated_at: optional, string: When the question was last modified. eg. “2010-07-06 12:01:19”
- uses_catchup: optional, bool: Whether the question uses the catchup algorithm for selecting prompts
Returns:
nil
Notes:
- nil error if :question not present
- apparently a lot of unused fields
- questions_controller in AOI uses :item_count instead of :items_count
- Various counts should not be updated manually, can put question in inconsistent state