Most recent edit on 2006-04-24 23:11:43 by TopperBowers
Additions:
Use the same headers as CreateAPoll
Deletions:
Use the same headers as get or create
Oldest known version of this page was edited on 2006-04-24 22:26:16 by TopperBowers []
Page view:
Updating a poll on Quimble with XML
endpoint url: quimble.com/api/update/$id (where $id is the id of the poll you want to update)
Use the same headers as get or create
Now: post an XML file with any updated attributes of the poll ie:
<?xml version="1.0" encoding="UTF-8"?>
<poll>
<question>This is my new question</question>
<options>
<option>
<id>####</id>
<name>This is a new name</name>
</option>
<option>
<id>####</id>
</option>
</options>
</poll>
In the example above, we've changed the question, and 1 option of the poll. We have also deleted an option.
It's important that you pass in the ids of the options (or else nothing will happen). Passing in an id without a <name> will cause that option to be deleted (along with all votes!)