PATCH /my/user/supergroups

PATCH /my/user/supergroups

Updates the supergroups of the logged in user

Body Required

  • supergroups array[string]

    Values are TYPE_OILY_RESISTANT, TYPE_OILY_NEUTRAL, TYPE_OILY_SENSITIVE, TYPE_BALANCED_RESISTANT, TYPE_BALANCED_NEUTRAL, TYPE_BALANCED_SENSITIVE, TYPE_DRY_RESISTANT, TYPE_DRY_NEUTRAL, TYPE_DRY_SENSITIVE, CONDITION_ACNE, CONDITION_ECZEMA, CONDITION_ROSACEA, CONDITION_DEHYDRATED, PROBLEM_SUNEXPOSURE, PROBLEM_WRINKLES, PROBLEM_POLLUTION, CONCERN_PARABEN, CONCERN_SULFATE, or CONCERN_SILICONE.

Responses

  • no content success

  • Bad Request

  • Authorization information is missing or invalid.

  • Authorization forbidden

  • Unprocessable Entity

  • Server Error

PATCH /my/user/supergroups
curl \
 -X PATCH https://api.cosmily.com/api/v1/my/user/supergroups \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"supergroups":["TYPE_OILY_RESISTANT"]}'
Request example
{
  "supergroups": [
    "TYPE_OILY_RESISTANT"
  ]
}
Request examples
{
  "supergroups": [
    "TYPE_OILY_RESISTANT"
  ]
}