POST api/restrictions

Create or update restriction header

Request Information

URI Parameters

None.

Body Parameters

RestrictionHeader to save

RestrictionHeader
NameDescriptionTypeAdditional information
ID

Header ID

integer

None.

RestrictionGuid

globally unique identifier

None.

RestrictionIdentifier

Identifier

Collection of byte

None.

Name

Restriction description

string

None.

RestrictionType

Kind of restriction

RestrictionType

None.

Inactive

Restriction header is active

boolean

None.

Updated

Last time header was updated

date

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "restrictionIdentifier": "QEA=",
  "name": "sample string 2",
  "restrictionType": 3,
  "inactive": true,
  "updated": "2025-06-14T06:08:01.8675051"
}

application/xml, text/xml

Sample:
<RestrictionHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Restrictions">
  <ID>1</ID>
  <Inactive>true</Inactive>
  <Name>sample string 2</Name>
  <RestrictionGuid i:nil="true" />
  <RestrictionIdentifier>QEA=</RestrictionIdentifier>
  <RestrictionType>3</RestrictionType>
  <Updated>2025-06-14T06:08:01.8675051+00:00</Updated>
</RestrictionHeader>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RestrictionIdentifier of saved header

globally unique identifier

Response Formats

application/json, text/json

Sample:
"0ec76668-30e9-4840-b6ec-5acf5fb375b4"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0ec76668-30e9-4840-b6ec-5acf5fb375b4</guid>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Sample:
PK1�Z�C���5xl/workbook.xml �(���;�0D�H����@?M��7��-��lG���#�ҥۙ�};�dl�4�'5hW؊
�ǂ1�
T�.fD=︱
�,��e��i�
�gQ$��^��h���h:'�6��i}>R.�'�����.&a[����v\��hPX�<P�:���!%���p��4y�\1�8�3z�X����PK1�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
1�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="R35ac8d9ade444dda" /></Relationships>PK1�ZtZ�P%�xl/worksheets/sheet1.xml �(��Q�N�0���w���QMm'�i���кK�&��t�瓤!q�Ė��{v�����
�֫��:��5L��+��T3��k� "��=נC�R�V�U~E#�X뉭
1峤�7-��,� �b'���f����ˏ����PYe4Ug"{r/��� dSe�����E�蒒���"c��)+���W��h~Fs�!n�!��4�|k��@Xu��l��k�<�v����l�]YnK��ُ����M�<����i�ˑ=Ei��Fq�6E%��7������%�Q@�
??�|PK1�Z��O��Pxl/_rels/workbook.xml.rels �(���Kn�0@�b;q��
�n)�8�$"�#��r�.z�^��� u�
�����4����ٽ����5�$FF٦7m砟J�m70�	���gq��
��5�^u4�O�D&v�u#����O�N���t�ݜ�Lv�N��պW���<�	���u'�`Gt-�
~J�߂H"�sS�!/�R�l� �y*K`�aj>\�^��L�"�u�k��|�ˇ�t�y	.^z�4/��(�K��1�)\����_l�PK1�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��PK1�Z1&�G��xl/sharedStrings.xml �(�5�An� E���hc7�d)'H��8F2��G��K]>�������"��Q*�ˏ��0�1ᣗ���� 8�� ��H��wD,���3�z֚�9С��5�ʖW���
�H3�Ecu	��eG�Z)vL?;\��
�w�
�SG_���Q�!N�4O��8���w_�W�PK-1�Z�C���5xl/workbook.xmlPK-1�Z����	�[Content_Types].xmlPK-
1�Z�#''V_rels/.relsPK-1�ZtZ�P%��xl/worksheets/sheet1.xmlPK-1�Z��O��P9xl/_rels/workbook.xml.relsPK-1�ZЃc'2E
�xl/styles.xmlPK-1�Z1&�G���xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PK1�Zϋ��5xl/workbook.xml �(�����0��&�C����R8q����Z�@[����[ �x�3;���Ѻ�imG>�7�p%�!c^H��v@w�uB���l�*��o�&�,IN�aAY�<]h����/���eh��§f���e4ֺ�I�b�)>ö�YKZCJf�֔4��*wH��g�3��M��
�����PK1�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
1�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="R74365e444b9744db" /></Relationships>PK1�ZtZ�P%�xl/worksheets/sheet1.xml �(��Q�N�0���w���QMm'�i���кK�&��t�瓤!q�Ė��{v�����
�֫��:��5L��+��T3��k� "��=נC�R�V�U~E#�X뉭
1峤�7-��,� �b'���f����ˏ����PYe4Ug"{r/��� dSe�����E�蒒���"c��)+���W��h~Fs�!n�!��4�|k��@Xu��l��k�<�v����l�]YnK��ُ����M�<����i�ˑ=Ei��Fq�6E%��7������%�Q@�
??�|PK1�ZZ��g�Pxl/_rels/workbook.xml.rels �(���Kn�0@�b;q>�D`æ[�&�8�H��6�����W�E�6H]t�j4��'�|�lvo��.�|oM
Y�##��M[�9�
v�́q�w��Y\1��.�i͹���;��m݈!�������4]r7g�=����h��%�<�d�`�j��wD�]K����緐%�
�Y�p�4�H��*r)2�����|�����,DU���lr!4���Бz	.^z�4/���U��QY%�zqS�w��PK1�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��PK1�Z1&�G��xl/sharedStrings.xml �(�5�An� E���hc7�d)'H��8F2��G��K]>�������"��Q*�ˏ��0�1ᣗ���� 8�� ��H��wD,���3�z֚�9С��5�ʖW���
�H3�Ecu	��eG�Z)vL?;\��
�w�
ē��SG_���Q�!N�4O��8���w_�W�PK-1�Zϋ��5xl/workbook.xmlPK-1�Z����	�[Content_Types].xmlPK-
1�Z��''V_rels/.relsPK-1�ZtZ�P%��xl/worksheets/sheet1.xmlPK-1�ZZ��g�P9xl/_rels/workbook.xml.relsPK-1�ZЃc'2E
�xl/styles.xmlPK-1�Z1&�G���xl/sharedStrings.xmlPK��