PUT api/allergen/{id}
Save or Update an allergen
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Allergen identifier |
integer |
Required |
Body Parameters
Allergen to save
AllergenName | Description | Type | Additional information |
---|---|---|---|
ID |
Allergen identifier |
integer |
None. |
Name |
The allergen description and as used in the declaration statement |
string |
None. |
Reserved |
This allergen is reserved and can not be deleted by users |
boolean |
None. |
Updated |
The last time the allergen was updated (UTC on server) |
date |
None. |
Deleted |
Allergen has been soft deleted |
boolean |
None. |
Ingredients |
List of allergen ingredients for other declarations |
Collection of AllergenIngredient |
Relation. This field may not always be loaded or used for updates. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "name": "sample string 2", "reserved": true, "updated": "2025-08-02T23:18:05.776838", "deleted": true, "ingredients": [ { "$id": "2", "id": 1, "allergenID": 2, "text": "sample string 3" }, { "$ref": "2" } ] }
application/xml, text/xml
Sample:
<Allergen xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Allergens"> <Deleted>true</Deleted> <ID>1</ID> <Ingredients> <AllergenIngredient> <AllergenID>2</AllergenID> <ID>1</ID> <Text>sample string 3</Text> </AllergenIngredient> <AllergenIngredient> <AllergenID>2</AllergenID> <ID>1</ID> <Text>sample string 3</Text> </AllergenIngredient> </Ingredients> <Name>sample string 2</Name> <Reserved>true</Reserved> <Updated>2025-08-02T23:18:05.776838+00:00</Updated> </Allergen>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Allergen identifier
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Sample:
PK B�[F'{� 5 xl/workbook.xml � (� ���� D�M��(-�5���zG\*Q� ���"F��zۙ�};�l��Z;���/\����/z�ܟ�&�u��(X)��Ɗ�=�o��ȃ���j�x������ �qEi����ʥ�S�쓌�Vw1YC�7U&�~�2\C�8Fɹw�`� ��D�ZF%e4�f9��;�$���PK B�[���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK B�[ ��' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="Rbe68ad95c04d4ca7" /></Relationships>PK B�[��4 � xl/worksheets/sheet1.xml � (� �Q�n� ��}%��j�U���n�ۙ%N@ 82����6M�e������<��Ȯ@��ox��8�bg���9�w����t ��aO 71N{!Bk��� |z둜�)�A`��N��|۪� �Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK B�[�D-� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞�q���ݰa[z��Q;�]�gc���V� �X��j4��'�|�lvo�H^0��; e���Ӿ\/���춛=�*�h�9����Ҽ�4j��������aR)�����G�#��Ӱd�5��3���4>z}�Х?��Շc�� �A����R��P� 䩓��^�Vp���z��L-�����;_�T�b�WM�v�.+~S�v�)�K/���kJ�U+�B^�X]���_l� PK B�[Ѓc'2 E xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&� AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK B�[�/�� � xl/sharedStrings.xml � (� 5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK- B�[F'{� 5 xl/workbook.xmlPK- B�[���� � [Content_Types].xmlPK- B�[ ��' ' V _rels/.relsPK- B�[��4 � � xl/worksheets/sheet1.xmlPK- B�[�D-� P . xl/_rels/workbook.xml.relsPK- B�[Ѓc'2 E u xl/styles.xmlPK- B�[�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK B�[���M� 5 xl/workbook.xml � (� ����0D�&�C��" )��x��}��m�-ik��-H�yۙ�};|��Zۓ��/]Eecɘo%j�';��;a���{1+�j���[� ,M�+s8@P�x�FOW�?,?:��KĠ��AZ���C�����l���o�/��bQĀƊ6��Źu=S�J�;�Ȋ4O�K& ��wg���PK B�[���� � [Content_Types].xml � (� ���J�0�_��*M�D��V�*��d� �d�k��<�H���V���= ��|�o��|����������+�����7l���e۶~=E�"�zlXO�@Ճ��C�3]HNR~���R��uU�<���������a��36��b7םQ �1Z�$�8z�R��3 tP��-c�� g����_M��Of���~O�s�T���� ����P<�D��e=1Z��a2�b ��%#H'�2}���e�B)��~j/F�t��PK B�[O.S' ' _rels/.rels � (� <?xml version="1.0" encoding="utf-8"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml" Id="R850f9bc5255c4139" /></Relationships>PK B�[��4 � xl/worksheets/sheet1.xml � (� �Q�n� ��}%��j�U���n�ۙ%N@ 82����6M�e������<��Ȯ@��ox��8�bg���9�w����t ��aO 71N{!Bk��� |z둜�)�A`��N��|۪� �Q�T*;���G+L�+ܸJ9m=W��I=�g}Ï5gBɂ|���_1�m|"^r��5�*X�|.�_�u��y�o�<�LLz(��Pv�l�gN�ʹ�.��?m��j�M�v��z��+��:騕$\�礚��G����Z�kf���ߎW�Is:#F����W�PK B�[ }f�� P xl/_rels/workbook.xml.rels � (� ��Kn� @��f_ccc�Q�l��6�(Ɗ ��9[=R�P�J�#u�M��|xz����M#yEg;(�Z��`�NQ?��ݬ�8��6��@�:01�+J�48���m�h�'S�{:y=R��5�K�2��2��N�Aⓓ� m�L���A�@��;�izME��@v��=r�ˆq�"�J� �wS�2b����2���1�Z^��#Ww�1£z�>���i�^���ES+�+�����Fo�b�PK B�[Ѓc'2 E xl/styles.xml � (� �S�j�0��&0���0�^�]v��:��d;��H��Kj�vG�Mz�zOHr�iB8v �F��WEG�?s�Oh�lff�uZМ���ށh�R���6�'��2��������ɳ�UŦ`<Қo���x���8��K�6BC ^�کĖ��B���n��f8����9� ����CUk��#��U�ub��WUB;��k���&� AR>��� ��im��ΑF���YO��%�}� ��LJ\in�,���9oy}��y.�$��6��ųNJ�c��T��rĘ)փBR淶�E3ʟ�\��q��PK B�[�/�� � xl/sharedStrings.xml � (� 5�A� �B�nA�h&�@@ڵ����������d2;}Ҧ�X9frp(�9/�V���p��i�[&t�E5��YTO��r՚���R7�\���u�\*����M��9��#��s#qЧ��������~PK- B�[���M� 5 xl/workbook.xmlPK- B�[���� � � [Content_Types].xmlPK- B�[O.S' ' U _rels/.relsPK- B�[��4 � � xl/worksheets/sheet1.xmlPK- B�[ }f�� P - xl/_rels/workbook.xml.relsPK- B�[Ѓc'2 E t xl/styles.xmlPK- B�[�/�� � � xl/sharedStrings.xmlPK � �