PUT api/host/{hostType}/commoditymap/{commodity}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| hostType | integer |
Required |
|
| commodity | string |
Required |
Body Parameters
CommodityMap| Name | Description | Type | Additional information |
|---|---|---|---|
| HostType | HostType |
None. |
|
| HostIdentifier | Collection of byte |
Deprecated. Please use HostType. |
|
| HostIdentifierGuid | globally unique identifier |
Deprecated. Please use HostType. |
|
| Commodity | string |
Required String length: inclusive between 0 and 20 |
|
| Description | string |
String length: inclusive between 0 and 255 |
|
| DepartmentCode | string |
String length: inclusive between 0 and 20 |
|
| SubDepartmentCode | string |
String length: inclusive between 0 and 20 |
|
| MinorDepartmentCode | string |
String length: inclusive between 0 and 20 |
|
| LesserDepartmentCode | string |
String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"hostType": 1,
"hostIdentifier": "tP9wh/dYukaM8TWGPdbgAg==",
"hostIdentifierGuid": "8770ffb4-58f7-46ba-8cf1-35863dd6e002",
"commodity": "sample string 3",
"description": "sample string 4",
"departmentCode": "sample string 5",
"subDepartmentCode": "sample string 6",
"minorDepartmentCode": "sample string 7",
"lesserDepartmentCode": "sample string 8"
}
application/xml, text/xml
Sample:
<CommodityMap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Hosts"> <Commodity>sample string 3</Commodity> <DepartmentCode>sample string 5</DepartmentCode> <Description>sample string 4</Description> <HostIdentifier>tP9wh/dYukaM8TWGPdbgAg==</HostIdentifier> <HostIdentifierGuid>8770ffb4-58f7-46ba-8cf1-35863dd6e002</HostIdentifierGuid> <HostType>1</HostType> <LesserDepartmentCode>sample string 8</LesserDepartmentCode> <MinorDepartmentCode>sample string 7</MinorDepartmentCode> <SubDepartmentCode>sample string 6</SubDepartmentCode> </CommodityMap>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
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 3�\X�I4� 5 xl/workbook.xml � (� ����0��&�C���@")��x��}��4П�5��$���~;|2nx3���/]E�lɘo{T�OƢ�;a���{1#�l�1�[�,M��9!H�}/��+�����=bP�R 5��B���!q��Vw6 [C�7��~�(�AaE@��ܺ��)q���=��mR�y^d�5�;{�q����PK 3�\���� � [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
3�\5��J' ' _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="R3a3031c3e2a34d1f" /></Relationships>PK 3�\��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 3�\��� P xl/_rels/workbook.xml.rels � (� ��An� E��f_�]�C'�n�Ms�c�Hۜ���W(J�֑��&+4��i������m��8x�BY0 ��pJ�n��f��J�F��I~�b6�yMi�'?���äR.COg���GZ1VӰd�5��3���4>x}�Х?��Շc�� �A�S?Q���,2�c�¾R��hV!j�%Bo��y����]/d�0�a��Hd��2V�Rț^:-��V��t�H�0�TsQ�W�b�PK 3�\Ѓ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 3�\�/�� � 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- 3�\X�I4� 5 xl/workbook.xmlPK- 3�\���� � � [Content_Types].xmlPK-
3�\5��J' ' U _rels/.relsPK- 3�\��4 � � xl/worksheets/sheet1.xmlPK- 3�\��� P - xl/_rels/workbook.xml.relsPK- 3�\Ѓc'2 E
t xl/styles.xmlPK- 3�\�/�� � � xl/sharedStrings.xmlPK � �
application/vnd.ms-excel
Sample:
PK 3�\��fշ 5 xl/workbook.xml � (� ����0��&�C��
�FR8q���{��4П�5���H�yۙ��v�l��3����/]��lI��Pܟ�w�8�C��E����to:��|��h?H��J����� �iE).5������)a�IFc�����!�b �_$�4WP��Qr�}�/�R��A3Ai^ЖҢ���������PK 3�\���� � [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
3�\�r�' ' _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="R36f9c072e7074953" /></Relationships>PK 3�\��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 3�\ԃ�Q� P xl/_rels/workbook.xml.rels � (� ��KN�0@�b͞8�IQ�n�t[z�'Q;��B�Ƃ#q�"A*�`��h~OO��|�Xoߦ�������$FF�v0]
��*�n�{e��f���5�!�O�{��$}bg2����d����,�Qv��4-�[2�����C�Z���:Md�`�j���D�A��B
?%ϯ!K"خ�a��F,6�B�
����e$����/deYU4�WM)Rl�*�KG�Kp��K�ey��m���@�+���U�����PK 3�\Ѓ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 3�\�/�� � 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- 3�\��fշ 5 xl/workbook.xmlPK- 3�\���� � [Content_Types].xmlPK-
3�\�r�' ' V _rels/.relsPK- 3�\��4 � � xl/worksheets/sheet1.xmlPK- 3�\ԃ�Q� P . xl/_rels/workbook.xml.relsPK- 3�\Ѓc'2 E
u xl/styles.xmlPK- 3�\�/�� � � xl/sharedStrings.xmlPK � �