tasks
Update Task Availability Endpoint
Update task availability based on the cleaning result.
Parameters:
- prolific_id: The prolific ID of the user
- action: The action to perform - must be 'available' or 'unavailable' or 'locked'
- 'available': Makes tasks available again and clears their prolific_id
- 'unavailable': Keeps tasks unavailable
- 'locked': Keeps tasks locked
Behavior:
- Finds all tasks with the specified prolific_id
- Updates their availability status based on the action
- Only operates on non-deleted tasks (is_deleted is None)
Returns: The first task from the updated group.
Raises:
- 400: Invalid action (must be 'available' or 'unavailable' or 'locked')
- 404: No tasks found for the specified prolific_id
post/api/tasks/update_availability
Request
- Base URLhttps://api.mit-llm-survey.academy (the document declares no server; this is the origin it was published from)
- Authnone declared
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.