PATCH /users/:id/skin_profile

PATCH /users/{id}/skin_profile

Update the user's skin profile

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Body Required

  • gender string

    Values are male, female, or non_binary.

  • Values are 18_24, 25_34, 35_44, 45_54, or 55+.

  • either a two letter country code, a three letter country code, or a full country name

  • climate string

    Values are continental, dry, polar, temperate, or tropical.

  • Values are urban, suburban, or rural.

  • skin_types array[string]

    Values are balanced, dry, oily, sensitive, acnee_prone, rosacea, or allergenic.

  • skin_goals array[string]

    Values are acne_fighting, anti_aging, antioxidant, antiseptic, healing, moisturising, softening, soothing, uv_protecting, or whitening.

  • skin_concerns array[string]

    Values are alcohol, allergen, comedogenic_rating, fragrance, fungal_acne_feeding, gluten, paraben, peg, silicone, or sulfate.

  • regular_treatments array[string]

    Values are botox, dermal_fillers, facials, chemical_peels, laser_hair_removal, microdermabrasion, or pigmentation_removal.

  • Values are short, medium, or long.

  • Values are low, medium, or high.

  • Minimum value is 0, maximum value is 7.

  • Minimum value is 1, maximum value is 5.

  • Minimum value is 1, maximum value is 5.

  • Minimum value is 1, maximum value is 5.

  • Values are never, rarely, sometimes, or often.

  • Values are normal, oily, rough, or dry.

  • Values are affordability, clean_beauty, vegan_beauty, or quick_results.

Responses

  • successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
  • Bad Request

  • Authorization information is missing or invalid.

  • User Not Found

  • Unprocessable Entity

  • Server Error

PATCH /users/{id}/skin_profile
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"}'
Request example
{
  "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"
}
Request examples
{
  "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"
}
Response examples (200)
{
  "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"
  }
}
Response examples (200)
{
  "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"
  }
}