POST api/packcenter/createplacement
Create new Placement for PC entity
Request Information
URI Parameters
None.
Body Parameters
Create Placement Request
CreatePlacementRequest| Name | 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": "861b82ae-559c-4181-a03e-f2acafdeb646",
"DeviceAssignmentId": "9e73f101-024a-41b3-9642-cc3f834071c1"
}
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>861b82ae-559c-4181-a03e-f2acafdeb646</BusinessUnitId> <Code>sample string 1</Code> <DeviceAssignmentId>9e73f101-024a-41b3-9642-cc3f834071c1</DeviceAssignmentId> </CreatePlacementRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Newly created Placement Id and Device Code
DevicePlacementApiModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DevicePlacementId | globally unique identifier |
None. |
|
| DeviceCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"DevicePlacementId": "a9970b80-8128-4ed3-9a07-9c3f11b08037",
"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>a9970b80-8128-4ed3-9a07-9c3f11b08037</DevicePlacementId> </DevicePlacementApiModel>