# Add ingriedient Add ingriedient to kitchen. Endpoint: POST /ingredients Version: 1.0.0 Security: jwtToken ## Request fields (application/json): - `kitchenId` (string, required) Example: "altman-family" - `name` (string, required) Name of ingredient. Example: "broccoli" - `quantity` (number, required) Quantity of the ingredient. Example: 10 - `unit` (string, required) Unit of the ingredient. Example: "cups" - `useBefore` (string, required) Expiration date of the ingredient. ## Response 201 fields (application/json): - `id` (string, required) Identifier of ingredient. - `object` (string, required) Enum: "ingredient" - `kitchenId` (string, required) Example: "altman-family" - `name` (string, required) Name of ingredient. Example: "broccoli" - `quantity` (number, required) Quantity of the ingredient. Example: 10 - `unit` (string, required) Unit of the ingredient. Example: "cups" - `useBefore` (string, required) Expiration date of the ingredient. - `createdAt` (string, required) Production date of the ingredient. ## Response 400 fields (application/json+problem): - `title` (string) Summarized problem description. Example: "Bad request" - `status` (integer) HTTP status code. Enum: 400 - `detail` (string) More detail information about problem. Example: "Quantity is to large." ## Response 401 fields (application/json+problem): - `title` (string) Summarized problem description. Example: "Unauthorized" - `status` (integer) HTTP status code. Enum: 401 - `detail` (string) More detail information about problem. Example: "You session already expired."