POST v1/equipment
Adds an equipment (new or previously used) to the available inventory
Request Information
URI Parameters
None.
Body Parameters
Equipment to add
EquipmentToAdd| Name | Description | Type | Additional information |
|---|---|---|---|
| SerialNumber |
Must be composed of alphanumeric caracters only. For modems it is the 12 hexadecimal caracters of the MAC address. |
string |
None. |
| TypeId |
Must be one of the values returned by equipment-types API function. |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"SerialNumber": "sample string 1",
"TypeId": 2
}
application/xml, text/xml
Sample:
<EquipmentToAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Judas.Controllers.EquipmentNs"> <SerialNumber>sample string 1</SerialNumber> <TypeId>2</TypeId> </EquipmentToAdd>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.