POST /ingredients/create

POST /ingredients/create

Create ingredient

Body Required

  • title string Required

    Ingredient Name

Responses

POST /ingredients/create
curl \
 -X POST https://api.cosmily.com/api/v1/ingredients/create \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"title":"string"}'
Request example
{
  "title": "string"
}
Request examples
{
  "title": "string"
}
Response examples (201)
{
  "data": {
    "id": 42,
    "title": "string",
    "alias": "string",
    "description": "string",
    "introtext": "string",
    "content": "string",
    "categories": "string",
    "ewg": {
      "min": 42,
      "max": 42,
      "data": "string",
      "url": "string",
      "background": "string",
      "decision": "string"
    },
    "created_at": "string",
    "updated_at": "string",
    "cir_rating": "string",
    "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,
    "title": "string",
    "alias": "string",
    "description": "string",
    "introtext": "string",
    "content": "string",
    "categories": "string",
    "ewg": {
      "min": 42,
      "max": 42,
      "data": "string",
      "url": "string",
      "background": "string",
      "decision": "string"
    },
    "created_at": "string",
    "updated_at": "string",
    "cir_rating": "string",
    "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
    }
  }
}