PUT practice-preferences/…

Modifies the user's practice preferences for the specified drill.

Resource URL

https://www.drillster.com/api/2/practice-preference/{drill_id}

Parameters

Field Type Description
direction
optional
String constant The user's preferred practice direction for this drill:

  • BIDIRECTIONAL (default)
  • PRODUCTIVE
  • RECEPTIVE
style
optional
String constant The user's preferred practice style for this drill:

  • MULTIPLE_CHOICE (default)
  • OPEN_ENDED
useIntroductions
optional
Boolean The user's preference for introductions:

  • true (default)
  • false
unknownColumns
optional, repeatable
String The names of the unknown columns to include. This parameter can be specified multiple times to include more than one unknown column.

If a PUT request has no body (i.e. the body is empty), it is still mandatory to include a Content-Length header (i.e. Content-Length: 0). Not all HTTP clients do this automatically. For more information, please see RFC 2616.

Response

A 2.0 Preferences object reflecting the changes.

Example request

PUT https://www.drillster.com/api/2/practice-preference/QPkDuaqVSY6IB18AkUlAL
direction=RECEPTIVE&style=OPEN_ENDED&useIntroductions=true&unknownColumn=Singular&unknownColumn=Plural