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": "70ef8afc-ee7a-44f6-94f4-77d85a3574eb",
"DeviceAssignmentId": "231363b5-3f52-4a3f-a64b-a1b2d81d60b3"
}
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>70ef8afc-ee7a-44f6-94f4-77d85a3574eb</BusinessUnitId> <Code>sample string 1</Code> <DeviceAssignmentId>231363b5-3f52-4a3f-a64b-a1b2d81d60b3</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": "e8ea231e-6c86-4d4e-ad4a-9f5ef71c3888",
"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>e8ea231e-6c86-4d4e-ad4a-9f5ef71c3888</DevicePlacementId> </DevicePlacementApiModel>