POST api/allergens

Add or save allergen

Request Information

URI Parameters

None.

Body Parameters

Allergen to save

Allergen
NameDescriptionTypeAdditional 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-06-14T06:39:11.5699686",
  "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-06-14T06:39:11.5699686+00:00</Updated>
</Allergen>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Allergen identifier

integer

Response 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�4�Z�bZ�5xl/workbook.xml �(�����0D�&�C���h�'.^=x/tkhK��|K	$޼��ξ�j6v��G�ڕ�����$��u'3�;n��>H�"�s�Ck���I�$Wba�^턜^i���d�2'�W��R��x@�Z�=%�.�`lu�5D~SU��Q!MԸ��b�;�q��-e]���e�
�s΋��;�"���PK�4�Z����	�[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
�4�Z��''_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="R7ed8c9bb7d474553" /></Relationships>PK�4�Z��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�4�Zt|ـ�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞8�����ݰ���3��&�e����G�
XE�Tb�������4����ڼ�9��5Y���h�NQ=4�Y�v8��&�] ińt��� 5�"d֡Ie�,bJ�@��G1 ey^S�d�-��/�C�J���<�h�`�j�1h�d/�����R��Pd�
d�w�;�/zִX�R5z7�/�_��|!�8�yU
ٰ�@������ӥ�N��B�ע��[V���U�����PK�4�ZЃc'2E
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�4�Z�/���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-�4�Z�bZ�5xl/workbook.xmlPK-�4�Z����	�[Content_Types].xmlPK-
�4�Z��''V_rels/.relsPK-�4�Z��4��xl/worksheets/sheet1.xmlPK-�4�Zt|ـ�P.xl/_rels/workbook.xml.relsPK-�4�ZЃc'2E
uxl/styles.xmlPK-�4�Z�/����xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PK�4�ZV8��5xl/workbook.xml �(�����0��&�C���QR8q���{��4П�5���H�yۙ��v�l��3����/]��lI��Pܟ�w�8�C��E����to:��|��h?H��J����� �iE).5������)a�IFc�����!�b	�_$�4WP��Qr�}�)F��qx\)-2��[.h�fq��w#���PK�4�Z����	�[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
�4�Z�?'�''_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="R96973e4d655f46a3" /></Relationships>PK�4�Z��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�4�Z_���Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞8NB���ݰ��N<��&vd����G�
XEWb�������4����޾�9��5X�A�[9���)�����'����I\1��ay���g�3���e�,BL�@�ŀ��󚺔�Lr�,��Uj�����M�L_�;z���0p�)yz
,�T ;�a�0V�dm�X�����	���w��ty�t�F�X[�ruW-ʗ��S������QJ�mQ�
UyU�7��PK�4�ZЃc'2E
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�4�Z�/���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-�4�ZV8��5xl/workbook.xmlPK-�4�Z����	�[Content_Types].xmlPK-
�4�Z�?'�''V_rels/.relsPK-�4�Z��4��xl/worksheets/sheet1.xmlPK-�4�Z_���P.xl/_rels/workbook.xml.relsPK-�4�ZЃc'2E
uxl/styles.xmlPK-�4�Z�/����xl/sharedStrings.xmlPK��