Command Palette

Search for a command to run...

Log In

Create a Preference for a Participant

post/public/v1/participants/{participant}/preferences

The value must suit the type: a whole number of years for minimum_age and maximum_age, one of male, female, non_binary or other for gender, and free text for ethnicity.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • participantstringrequired

    The participant UUID

Body

application/json
  • levelenum<string>required
    Available options:preferredrequired
  • typeenum<string>required
    Available options:ethnicitygendermaximum_ageminimum_age
  • valuestringrequiredmax length 255
  • detailsstring | nullmax length 5000

Response

200application/json

ParticipantPreferenceResource

  • dataobjectrequired
    ▶Show 7 child attributes
    • idstringrequired
      Example:p1r2e3f4-a5b6-47c8-9d0e-1f2a3b4c5d6e
    • levelstringrequired
      Example:required
    • typestringrequired
      Example:gender
    • valuestringrequired
      Example:female
    • detailsstring | nullrequired
      Example:Prefers a female support worker for personal care
    • created_atstringrequired
      Example:2024-01-15T10:30:00+00:00
    • updated_atstringrequired
      Example:2024-01-15T10:30:00+00:00
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 422Validation error