POST api/Device/Assignment
使用序號(SerialNumber)註冊載具至iMOE
Request Information
URI Parameters
None.
Body Parameters
DeviceEnrollName | Description | Type | Additional information |
---|---|---|---|
Details |
新增載具清單 |
Collection of EnrollDetail |
None. |
Request Formats
application/json, text/json
Sample:
{ "Details": [ { "AssetID": "sample string 1", "PlanID": "sample string 2", "DeviceName": "sample string 3", "SerialNumber": "sample string 4", "UnitName": "sample string 5" }, { "AssetID": "sample string 1", "PlanID": "sample string 2", "DeviceName": "sample string 3", "SerialNumber": "sample string 4", "UnitName": "sample string 5" } ] }
application/xml, text/xml
Sample:
<DeviceEnroll xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <Details> <EnrollDetail> <AssetID>sample string 1</AssetID> <DeviceName>sample string 3</DeviceName> <PlanID>sample string 2</PlanID> <SerialNumber>sample string 4</SerialNumber> <UnitName>sample string 5</UnitName> </EnrollDetail> <EnrollDetail> <AssetID>sample string 1</AssetID> <DeviceName>sample string 3</DeviceName> <PlanID>sample string 2</PlanID> <SerialNumber>sample string 4</SerialNumber> <UnitName>sample string 5</UnitName> </EnrollDetail> </Details> </DeviceEnroll>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EnrollResultName | Description | Type | Additional information |
---|---|---|---|
Details |
載具新增結果 |
Collection of ResultDetail |
None. |
Response Formats
application/json, text/json
Sample:
{ "Details": [ { "DeviceName": "sample string 1", "SerialNumber": "sample string 2", "result": "sample string 3", "remark": "sample string 4" }, { "DeviceName": "sample string 1", "SerialNumber": "sample string 2", "result": "sample string 3", "remark": "sample string 4" } ] }
application/xml, text/xml
Sample:
<EnrollResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <Details> <ResultDetail> <DeviceName>sample string 1</DeviceName> <SerialNumber>sample string 2</SerialNumber> <remark>sample string 4</remark> <result>sample string 3</result> </ResultDetail> <ResultDetail> <DeviceName>sample string 1</DeviceName> <SerialNumber>sample string 2</SerialNumber> <remark>sample string 4</remark> <result>sample string 3</result> </ResultDetail> </Details> </EnrollResult>