Path parameters
-
ID of the resource to fetch
Body Required
-
gender string
Values are
male
,female
, ornon_binary
. -
age_range string
Values are
18_24
,25_34
,35_44
,45_54
, or55+
. -
country_ref string
either a two letter country code, a three letter country code, or a full country name
-
postal_code string
-
climate string
Values are
continental
,dry
,polar
,temperate
, ortropical
. -
locale_density string
Values are
urban
,suburban
, orrural
. -
skin_types array[string]
Values are
balanced
,dry
,oily
,sensitive
,acnee_prone
,rosacea
, orallergenic
. -
skin_goals array[string]
Values are
acne_fighting
,anti_aging
,antioxidant
,antiseptic
,healing
,moisturising
,softening
,soothing
,uv_protecting
, orwhitening
. -
skin_concerns array[string]
Values are
alcohol
,allergen
,comedogenic_rating
,fragrance
,fungal_acne_feeding
,gluten
,paraben
,peg
,silicone
, orsulfate
. -
regular_treatments array[string]
Values are
botox
,dermal_fillers
,facials
,chemical_peels
,laser_hair_removal
,microdermabrasion
, orpigmentation_removal
. -
routine_time_commitment string
Values are
short
,medium
, orlong
. -
weekly_sun_exposure string
Values are
low
,medium
, orhigh
. -
weekly_workouts integer
Minimum value is
0
, maximum value is7
. -
skin_reactivity integer
Minimum value is
1
, maximum value is5
. -
skin_oilyness integer
Minimum value is
1
, maximum value is5
. -
stress_level integer
Minimum value is
1
, maximum value is5
. -
breakout_frequency string
Values are
never
,rarely
,sometimes
, oroften
. -
morning_skin_feel string
Values are
normal
,oily
,rough
, ordry
. -
value_most_in_product string
Values are
affordability
,clean_beauty
,vegan_beauty
, orquick_results
.
curl \
-X PATCH https://api.cosmily.com/api/v1/users/{id}/skin_profile \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"gender":"male","age_range":"25_34","country_ref":"FR","postal_code":"75007","climate":"temperate","locale_density":"suburban","skin_types":["oily","rosacea"],"skin_goals":["anti_aging","softening","uv_protecting"],"skin_concerns":["allergen","fragrance","sulfate"],"regular_treatments":["botox","laser_hair_removal","facials"],"routine_time_commitment":"temperate","weekly_sun_exposure":"temperate","weekly_workouts":42,"skin_reactivity":42,"skin_oilyness":42,"stress_level":42,"breakout_frequency":"sometimes","morning_skin_feel":"oily","value_most_in_product":"quick_results"}'
{
"gender": "male",
"age_range": "25_34",
"country_ref": "FR",
"postal_code": "75007",
"climate": "temperate",
"locale_density": "suburban",
"skin_types": [
"oily",
"rosacea"
],
"skin_goals": [
"anti_aging",
"softening",
"uv_protecting"
],
"skin_concerns": [
"allergen",
"fragrance",
"sulfate"
],
"regular_treatments": [
"botox",
"laser_hair_removal",
"facials"
],
"routine_time_commitment": "temperate",
"weekly_sun_exposure": "temperate",
"weekly_workouts": 42,
"skin_reactivity": 42,
"skin_oilyness": 42,
"stress_level": 42,
"breakout_frequency": "sometimes",
"morning_skin_feel": "oily",
"value_most_in_product": "quick_results"
}
{
"gender": "male",
"age_range": "25_34",
"country_ref": "FR",
"postal_code": "75007",
"climate": "temperate",
"locale_density": "suburban",
"skin_types": [
"oily",
"rosacea"
],
"skin_goals": [
"anti_aging",
"softening",
"uv_protecting"
],
"skin_concerns": [
"allergen",
"fragrance",
"sulfate"
],
"regular_treatments": [
"botox",
"laser_hair_removal",
"facials"
],
"routine_time_commitment": "temperate",
"weekly_sun_exposure": "temperate",
"weekly_workouts": 42,
"skin_reactivity": 42,
"skin_oilyness": 42,
"stress_level": 42,
"breakout_frequency": "sometimes",
"morning_skin_feel": "oily",
"value_most_in_product": "quick_results"
}
{
"data": {
"id": 42,
"user_id": 42,
"complete": true,
"gender": "female",
"age_range": "25_34",
"climate": "temperate",
"locale_density": "suburban",
"skin_types": [
"oily",
"rosacea"
],
"skin_goals": [
"anti_aging",
"softening",
"uv_protecting"
],
"skin_concerns": [
"allergen",
"fragrance",
"sulfate"
],
"regular_treatments": [
"botox",
"laser_hair_removal",
"facials"
],
"routine_time_commitment": "medium",
"weekly_sun_exposure": "medium",
"weekly_workouts": 42,
"skin_reactivity": 42,
"skin_oilyness": 42,
"stress_level": 42,
"breakout_frequency": "sometimes",
"morning_skin_feel": "oily",
"value_most_in_product": "affordability",
"updated_at": "2022-07-27T22:29:03.152Z"
}
}
{
"data": {
"id": 42,
"user_id": 42,
"complete": true,
"gender": "female",
"age_range": "25_34",
"climate": "temperate",
"locale_density": "suburban",
"skin_types": [
"oily",
"rosacea"
],
"skin_goals": [
"anti_aging",
"softening",
"uv_protecting"
],
"skin_concerns": [
"allergen",
"fragrance",
"sulfate"
],
"regular_treatments": [
"botox",
"laser_hair_removal",
"facials"
],
"routine_time_commitment": "medium",
"weekly_sun_exposure": "medium",
"weekly_workouts": 42,
"skin_reactivity": 42,
"skin_oilyness": 42,
"stress_level": 42,
"breakout_frequency": "sometimes",
"morning_skin_feel": "oily",
"value_most_in_product": "affordability",
"updated_at": "2022-07-27T22:29:03.152Z"
}
}