POST api/packcenter/createplacement
Create new Placement for PC entity
Request Information
URI Parameters
None.
Body Parameters
Create Placement Request
CreatePlacementRequestName | Description | Type | Additional information |
---|---|---|---|
Code |
Entity Code |
string |
None. |
BusinessUnitId |
Business Unit Id |
globally unique identifier |
None. |
DeviceAssignmentId |
Device Assignment Id |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "Code": "sample string 1", "BusinessUnitId": "e66bb0c6-196e-44bb-95f9-a45d1dfa9925", "DeviceAssignmentId": "92479d30-d2d0-4a8e-ba83-98b103295d0d" }
application/xml, text/xml
Sample:
<CreatePlacementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Deufol.CPCNL.API.Classes"> <BusinessUnitId>e66bb0c6-196e-44bb-95f9-a45d1dfa9925</BusinessUnitId> <Code>sample string 1</Code> <DeviceAssignmentId>92479d30-d2d0-4a8e-ba83-98b103295d0d</DeviceAssignmentId> </CreatePlacementRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Newly created Placement Id and Device Code
DevicePlacementApiModelName | Description | Type | Additional information |
---|---|---|---|
DevicePlacementId | globally unique identifier |
None. |
|
DeviceCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "DevicePlacementId": "573983d7-9f72-43a5-8f43-65b7628cb5c7", "DeviceCode": "sample string 2" }
application/xml, text/xml
Sample:
<DevicePlacementApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Deufol.CPCNL.BLL.Models.ApiModels"> <DeviceCode>sample string 2</DeviceCode> <DevicePlacementId>573983d7-9f72-43a5-8f43-65b7628cb5c7</DevicePlacementId> </DevicePlacementApiModel>