PUT api/host/{hostType}/commoditymap/{commodity}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hostType

integer

Required

commodity

string

Required

Body Parameters

CommodityMap
NameDescriptionTypeAdditional 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": "49RtGV49nkuC+OYHMleU8w==",
  "hostIdentifierGuid": "196dd4e3-3d5e-4b9e-82f8-e607325794f3",
  "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>49RtGV49nkuC+OYHMleU8w==</HostIdentifier>
  <HostIdentifierGuid>196dd4e3-3d5e-4b9e-82f8-e607325794f3</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

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�1�Z��Ʒ5xl/workbook.xml �(�����0��&�C��RF��x��}�E�O�||K	$޼���~;����z$9)W؊ޛ�1�(���Av��|���tߋݾ%*����3�x���qt���r�"tn@�rZQ����@H�4{�]����.&ak�����/�"
$V��D��U4��"w~�%)O�K�%]Fw�+����PK�1�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�Zm��''_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="Rbd069b1a6b544864" /></Relationships>PK�1�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�1�Z��J9�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞8N-7FM�aö���Q;�]�gc���V� �X��j4��'�|�lvo�H^0�!�XUA��|��)ۻv��G��DrÜHY���|Oi�'��0�/�rIcOg���G�Ե�qɀk&9�g�1X;h|�4����k���3���=�~J�^�
ȣ�`��Fq�j�j-83��Z��ӯ�w����R����7�q*�yʱ\z�,/ԸP�V
�
4�{Q�W��PK�1�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�1�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-�1�Z��Ʒ5xl/workbook.xmlPK-�1�Z����	�[Content_Types].xmlPK-
�1�Zm��''V_rels/.relsPK-�1�Z��4��xl/worksheets/sheet1.xmlPK-�1�Z��J9�P.xl/_rels/workbook.xml.relsPK-�1�ZЃc'2E
txl/styles.xmlPK-�1�Z�/����xl/sharedStrings.xmlPK��

application/vnd.ms-excel

Sample:
PK�1�Z��R�5xl/workbook.xml �(�����0��J}�(�P@�X�v�n��D%?JR��o�ԭ��|�|�l�k��E>z2��-�1���0J�.֡I;a����2+����[��,ϲ�y� *k�T.Ѝ�+8���D�z�P����DH�4{(��*���]L¶�M5+�X1���=D�dun��WJ|��p8�l��P�EE�k����PK�1�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="Rbe22872f3b014c78" /></Relationships>PK�1�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�1�Z?'GV�Pxl/_rels/workbook.xml.rels �(���KN�0@�b͞؉���ݰa[z�'Q۲]�gc���V� �X��j4��'�|�l�o�H^0���ʂA��l��9���w��2��>��bc}J~CiT=N2Σ���$SNCG�T'�!��i�3�I���!:c��N�'��0}u�{��(C����R��P�
�I7p0Fj�k5oE�k �nj1]F��^��L�bF���U�*�X����2�~N!_z�4/����\�zɵТ��ћ��}PK�1�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�1�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-�1�Z��R�5xl/workbook.xmlPK-�1�Z����	��[Content_Types].xmlPK-
�1�Z�#�''U_rels/.relsPK-�1�Z��4��xl/worksheets/sheet1.xmlPK-�1�Z?'GV�P-xl/_rels/workbook.xml.relsPK-�1�ZЃc'2E
txl/styles.xmlPK-�1�Z�/����xl/sharedStrings.xmlPK��