---
title: "NutrientRating"
url: "https://developer-qual.migros.ch/apis/quality-data-8/versions/aa2147b3-5aa1-4f7f-a449-bd7dc3796d65/schemas/NutrientRating"
---

> Full API specification: https://developer-qual.migros.ch/apis/quality-data-8/versions/aa2147b3-5aa1-4f7f-a449-bd7dc3796d65.md

# NutrientRating

Nutrition guidance about a nutrient.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Quality Data
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api-qual.migros.ch
components:
  schemas:
    Image:
      description: An image and its properties.
      properties:
        code:
          description: Code for the image, useful for pictograms.
          nullable: true
          type: string
        description:
          description: Image description, useful for example as alt attribute.
          nullable: true
          type: string
        original:
          description: Full size image.
          type: string
        stack:
          description: Image URL with a placeholder for a Rokka {stack}.
          type: string
      type: object
    NutrientRating:
      description: Nutrition guidance about a nutrient.
      properties:
        hex_color:
          type: string
        icon:
          nullable: true
          oneOf:
            - $ref: "#/components/schemas/Image"
        text:
          type: string
        value:
          description: The hexadecimal color code for this rating that is also used in the
            icon.
          type: integer
      required:
        - value
        - text
        - hex_color
      type: object
```
