POST /ingredients/:id_or_alias/submit_feedback

POST /ingredients/{id_or_alias}/submit_feedback

Submit the logged in user's feedback regarding the specified ingredient

Path parameters

  • id_or_alias string Required

    ID of the resource to return

Body Required

  • boolean_properties object
    Hide boolean_properties attributes Show boolean_properties attributes object
    • ceramide boolean
    • vitamin boolean
    • pha boolean
    • bha boolean
    • aha boolean
    • hyaluronic_acid boolean
    • retinoid boolean
    • niacinamide boolean
    • antioxidant boolean
    • moisturising boolean
    • softening boolean
    • soothing boolean
    • acne_fighting boolean
    • anti_aging boolean
    • healing boolean
    • antiseptic boolean
    • whitening boolean
    • uv_protecting boolean
    • allergen boolean
    • alcohol boolean
    • gluten boolean
    • silicone boolean
    • sulfate boolean
    • paraben boolean
    • peg boolean
    • fungal_acne_feeding boolean
    • fragrance boolean
    • good_for_dry_skin boolean
    • bad_for_dry_skin boolean
    • good_for_oily_skin boolean
    • bad_for_oily_skin boolean
    • good_for_sensitive_skin boolean
    • bad_for_sensitive_skin boolean
  • other_properties object
    Hide other_properties attributes Show other_properties attributes object
    • comedogenic_rating integer

      Minimum value is 0, maximum value is 5.

    • natural string

      Values are organic or synthetic.

Responses

  • 422

    Unprocessable Entity

  • 201

    successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id integer
      • created_at string(DateTime)
      • ingredient_id integer
      • user_id integer
      • integer_properties object
        Hide integer_properties attributes Show integer_properties attributes object
        • comedogenic_rating integer
        • natural integer
      • boolean_properties object
        Hide boolean_properties attributes Show boolean_properties attributes object
        • ceramide boolean
        • vitamin boolean
        • pha boolean
        • bha boolean
        • aha boolean
        • hyaluronic_acid boolean
        • retinoid boolean
        • niacinamide boolean
        • antioxidant boolean
        • moisturising boolean
        • softening boolean
        • soothing boolean
        • acne_fighting boolean
        • anti_aging boolean
        • healing boolean
        • antiseptic boolean
        • whitening boolean
        • uv_protecting boolean
        • allergen boolean
        • alcohol boolean
        • gluten boolean
        • silicone boolean
        • sulfate boolean
        • paraben boolean
        • peg boolean
        • fungal_acne_feeding boolean
        • fragrance boolean
        • good_for_dry_skin boolean
        • bad_for_dry_skin boolean
        • good_for_oily_skin boolean
        • bad_for_oily_skin boolean
        • good_for_sensitive_skin boolean
        • bad_for_sensitive_skin boolean
  • 500

    Server Error

  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 404

    Ingredient Not Found

POST /ingredients/{id_or_alias}/submit_feedback
curl \
 -X POST https://api.cosmily.com/api/v1/ingredients/{id_or_alias}/submit_feedback \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"boolean_properties":{"ceramide":true,"vitamin":true,"pha":true,"bha":true,"aha":true,"hyaluronic_acid":true,"retinoid":true,"niacinamide":true,"antioxidant":true,"moisturising":true,"softening":true,"soothing":true,"acne_fighting":true,"anti_aging":true,"healing":true,"antiseptic":true,"whitening":true,"uv_protecting":true,"allergen":true,"alcohol":true,"gluten":true,"silicone":true,"sulfate":true,"paraben":true,"peg":true,"fungal_acne_feeding":true,"fragrance":true,"good_for_dry_skin":true,"bad_for_dry_skin":true,"good_for_oily_skin":true,"bad_for_oily_skin":true,"good_for_sensitive_skin":true,"bad_for_sensitive_skin":true},"other_properties":{"comedogenic_rating":2,"natural":"organic"}}'
Request example
{
  "boolean_properties": {
    "ceramide": true,
    "vitamin": true,
    "pha": true,
    "bha": true,
    "aha": true,
    "hyaluronic_acid": true,
    "retinoid": true,
    "niacinamide": true,
    "antioxidant": true,
    "moisturising": true,
    "softening": true,
    "soothing": true,
    "acne_fighting": true,
    "anti_aging": true,
    "healing": true,
    "antiseptic": true,
    "whitening": true,
    "uv_protecting": true,
    "allergen": true,
    "alcohol": true,
    "gluten": true,
    "silicone": true,
    "sulfate": true,
    "paraben": true,
    "peg": true,
    "fungal_acne_feeding": true,
    "fragrance": true,
    "good_for_dry_skin": true,
    "bad_for_dry_skin": true,
    "good_for_oily_skin": true,
    "bad_for_oily_skin": true,
    "good_for_sensitive_skin": true,
    "bad_for_sensitive_skin": true
  },
  "other_properties": {
    "comedogenic_rating": 2,
    "natural": "organic"
  }
}
Request examples
{
  "boolean_properties": {
    "ceramide": true,
    "vitamin": true,
    "pha": true,
    "bha": true,
    "aha": true,
    "hyaluronic_acid": true,
    "retinoid": true,
    "niacinamide": true,
    "antioxidant": true,
    "moisturising": true,
    "softening": true,
    "soothing": true,
    "acne_fighting": true,
    "anti_aging": true,
    "healing": true,
    "antiseptic": true,
    "whitening": true,
    "uv_protecting": true,
    "allergen": true,
    "alcohol": true,
    "gluten": true,
    "silicone": true,
    "sulfate": true,
    "paraben": true,
    "peg": true,
    "fungal_acne_feeding": true,
    "fragrance": true,
    "good_for_dry_skin": true,
    "bad_for_dry_skin": true,
    "good_for_oily_skin": true,
    "bad_for_oily_skin": true,
    "good_for_sensitive_skin": true,
    "bad_for_sensitive_skin": true
  },
  "other_properties": {
    "comedogenic_rating": 2,
    "natural": "organic"
  }
}
Response examples (201)
{
  "data": {
    "id": 42,
    "created_at": "string",
    "ingredient_id": 42,
    "user_id": 42,
    "integer_properties": {
      "comedogenic_rating": 42,
      "natural": 42
    },
    "boolean_properties": {
      "ceramide": true,
      "vitamin": true,
      "pha": true,
      "bha": true,
      "aha": true,
      "hyaluronic_acid": true,
      "retinoid": true,
      "niacinamide": true,
      "antioxidant": true,
      "moisturising": true,
      "softening": true,
      "soothing": true,
      "acne_fighting": true,
      "anti_aging": true,
      "healing": true,
      "antiseptic": true,
      "whitening": true,
      "uv_protecting": true,
      "allergen": true,
      "alcohol": true,
      "gluten": true,
      "silicone": true,
      "sulfate": true,
      "paraben": true,
      "peg": true,
      "fungal_acne_feeding": true,
      "fragrance": true,
      "good_for_dry_skin": true,
      "bad_for_dry_skin": true,
      "good_for_oily_skin": true,
      "bad_for_oily_skin": true,
      "good_for_sensitive_skin": true,
      "bad_for_sensitive_skin": true
    }
  }
}
Response examples (201)
{
  "data": {
    "id": 42,
    "created_at": "string",
    "ingredient_id": 42,
    "user_id": 42,
    "integer_properties": {
      "comedogenic_rating": 42,
      "natural": 42
    },
    "boolean_properties": {
      "ceramide": true,
      "vitamin": true,
      "pha": true,
      "bha": true,
      "aha": true,
      "hyaluronic_acid": true,
      "retinoid": true,
      "niacinamide": true,
      "antioxidant": true,
      "moisturising": true,
      "softening": true,
      "soothing": true,
      "acne_fighting": true,
      "anti_aging": true,
      "healing": true,
      "antiseptic": true,
      "whitening": true,
      "uv_protecting": true,
      "allergen": true,
      "alcohol": true,
      "gluten": true,
      "silicone": true,
      "sulfate": true,
      "paraben": true,
      "peg": true,
      "fungal_acne_feeding": true,
      "fragrance": true,
      "good_for_dry_skin": true,
      "bad_for_dry_skin": true,
      "good_for_oily_skin": true,
      "bad_for_oily_skin": true,
      "good_for_sensitive_skin": true,
      "bad_for_sensitive_skin": true
    }
  }
}