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 URL
    https://api.mit-llm-survey.academy (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

prolific_idstring required
actionstring required

Response

Successful Response

occupation_idstring required
task_urlstring required
task_descstring required
response_url_1string nullable
response_url_2string nullable
response_url_3string nullable
response_url_4string nullable
response_url_5string nullable
availablestring
prolific_idstring nullable
qualtrics_idstring nullable
historystring nullable
locked_historystring nullable
is_deletedstring date-time nullable
models_orderstring nullable
task_idstring required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 2 revisions of this API.