Create a Preference for a Participant
post
/public/v1/participants/{participant}/preferencesThe 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.
participantstringrequiredThe participant UUID
Body
application/jsonlevelenum<string>requiredAvailable options:preferredrequiredtypeenum<string>requiredAvailable options:ethnicitygendermaximum_ageminimum_agevaluestringrequiredmax length 255detailsstring | nullmax length 5000
Response
200application/jsonParticipantPreferenceResource
dataobjectrequired▶Show 7 child attributesHide child attributes
idstringrequiredExample:p1r2e3f4-a5b6-47c8-9d0e-1f2a3b4c5d6elevelstringrequiredExample:requiredtypestringrequiredExample:gendervaluestringrequiredExample:femaledetailsstring | nullrequiredExample:Prefers a female support worker for personal carecreated_atstringrequiredExample:2024-01-15T10:30:00+00:00updated_atstringrequiredExample:2024-01-15T10:30:00+00:00
401Unauthenticated403Authorization error404Not found422Validation error