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
Allergen| Name | 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": "2026-04-03T06:17:22.3162453",
"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>2026-04-03T06:17:22.3162453+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 +2�\S)D� 5 xl/workbook.xml � (� ����0D�J��(�P��@��ҵCwC�&�$(IE?�R�n�����ٺ��v =_�����1�K��/vBw�:
!J�bV�ck��FX�$9s8BP�x�&O7�?,?9�%b��Ҡm�'B���S��W���b���o�Za�Ū��5m! %�s�5�R�J��D�y���sz�X����PK +2�\���� � [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
+2�\�$�' ' _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="Rd7eca0b3b46842ed" /></Relationships>PK +2�\��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 +2�\���l� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞ر�+j�
�nK/`�q5�-�-�l,8W�*�6]����������m��}�i!�4�U��[8E���v���$c���I+&�0��)
݀��uhRG[?˘R�S'���r�*��e�����V��'f4�0}���� }����R�אg�
d�Zث-ĪR�t��B��e�����/dx]s�ES��*Y�Uf��s���K�ey�V����s�KVh^_���_l� PK +2�\Ѓ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 +2�\�/�� � 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- +2�\S)D� 5 xl/workbook.xmlPK- +2�\���� � � [Content_Types].xmlPK-
+2�\�$�' ' U _rels/.relsPK- +2�\��4 � � xl/worksheets/sheet1.xmlPK- +2�\���l� P - xl/_rels/workbook.xml.relsPK- +2�\Ѓc'2 E
t xl/styles.xmlPK- +2�\�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK +2�\�뎾� 5 xl/workbook.xml � (� ����0D{$����.9���R���`+�!�(|>N""����ξ:��s�z�6��U��J�W�D����sl�u.��O�Nh�x���Eq&���Qi�B��} &�HfXP�i���!:5{h�,��;��,!�3l����@�[�F�s�5�c*��;?Ƀ����<J!��^a�|7PK +2�\���� � [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
+2�\���-' ' _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="Rd6eb17dc4c00488d" /></Relationships>PK +2�\��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 +2�\x��G� P xl/_rels/workbook.xml.rels � (� ��Kn�0@�b;� P�d�M�i.`<F�Nڜ���W��J-���&�����4����M#;��5
dI
���8���S�*�n�{e�^�gq��t��^i��O�L&v:�&b�z>Ku�=�<MW�-p�d��L�!ڮ�:Md�`�j��k� � ]O�����א%�
�ط>b��Ԗ�@�����|�������JQW"�*�Q�������%�x�Ӳ�PSE%k�a�DYTW5~��/PK +2�\Ѓ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 +2�\�/�� � 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- +2�\�뎾� 5 xl/workbook.xmlPK- +2�\���� � � [Content_Types].xmlPK-
+2�\���-' ' U _rels/.relsPK- +2�\��4 � � xl/worksheets/sheet1.xmlPK- +2�\x��G� P - xl/_rels/workbook.xml.relsPK- +2�\Ѓc'2 E
s xl/styles.xmlPK- +2�\�/�� � � xl/sharedStrings.xmlPK � �