Skip to content

admin update_assignment.json

Timothy Duffy edited this page Mar 8, 2015 · 1 revision

###admin/update_assignment.json###

All admin api's require a token to be passed in. See get_access_token.json for more information.

admin/update_assignment.json?token=238236fa-0e1a-499c-8051-c46e2f416387

This call is an HTTP POST API. The command takes two fields:

name
    This is a short name for the assignment so it is easily picked out when several are displayed.
    This is only used on the moderator side, and will not be displayed to users.

life_time
    This is a non-zero integer that represents the number of hours the assignment should live for.
    Note: this is the number of hours *from when the assignment was originally posted*.

# [ NOT YET IMPLEMENTED ]
#questions
#    This is a JSON array of question ids that are associated with the assignment.
#    note: see admin/create_question.json for more information on question ids.

top_left_lat
     The top left latitude of the geo fence bounding box for the assignment in degrees.

top_left_lng
     The top left longitude of the geo fence bounding box for the assignment in degrees.

bottom_right_lat
    The bottom right latitude of the geo fence bounding box for the assignment in degrees.

bottom_right_lng
    The bottom right longitude of the geo fence bounding box for the assignment in degrees.

A valid response looks like:

{
    "assignment_id": 2,
    "success": true
}
Clone this wiki locally