POST api/pcapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
PCViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| active | boolean |
Required |
|
| cleanroom_id | globally unique identifier |
None. |
|
| db_login | string |
String length: inclusive between 0 and 50 |
|
| db_name | string |
String length: inclusive between 0 and 50 |
|
| db_password | string |
String length: inclusive between 0 and 50 |
|
| db_source | string |
String length: inclusive between 0 and 50 |
|
| id | globally unique identifier |
None. |
|
| local_ip | string |
String length: inclusive between 0 and 15 |
|
| lock_id | globally unique identifier |
None. |
|
| mac_address | string |
Required String length: inclusive between 0 and 30 |
|
| name | string |
String length: inclusive between 0 and 100 |
|
| pc_type_id | globally unique identifier |
None. |
|
| rights | Collection of ShortRightViewModel |
None. |
|
| site_id | globally unique identifier |
None. |
|
| zone_id | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"active": true,
"cleanroom_id": "2ff4e101-1ae0-448d-b434-cc751a3f2546",
"db_login": "sample string 2",
"db_name": "sample string 3",
"db_password": "sample string 4",
"db_source": "sample string 5",
"id": "4e2df0fc-9abb-4144-83c7-18e6360707e1",
"local_ip": "sample string 7",
"lock_id": "cf3a2d58-b5c8-4852-9aa6-f125e54dd244",
"mac_address": "sample string 8",
"name": "sample string 9",
"pc_type_id": "0ea1ba0b-05ed-4989-835a-bf4d21d506d7",
"rights": [
{
"code": "sample string 1",
"id": "bc8d9ef5-f766-404e-b5eb-d82a9f0a8380"
},
{
"code": "sample string 1",
"id": "bc8d9ef5-f766-404e-b5eb-d82a9f0a8380"
}
],
"site_id": "be690c2d-aab7-4364-82d9-702c23a92a89",
"zone_id": "046bd076-9682-434a-a981-77a6194f5a1c"
}
application/xml, text/xml
Sample:
<pc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<active>true</active>
<cleanroom_id>2ff4e101-1ae0-448d-b434-cc751a3f2546</cleanroom_id>
<db_login>sample string 2</db_login>
<db_name>sample string 3</db_name>
<db_password>sample string 4</db_password>
<db_source>sample string 5</db_source>
<id>4e2df0fc-9abb-4144-83c7-18e6360707e1</id>
<local_ip>sample string 7</local_ip>
<lock_id>cf3a2d58-b5c8-4852-9aa6-f125e54dd244</lock_id>
<mac_address>sample string 8</mac_address>
<name>sample string 9</name>
<pc_type_id>0ea1ba0b-05ed-4989-835a-bf4d21d506d7</pc_type_id>
<rights>
<right>
<ID>bc8d9ef5-f766-404e-b5eb-d82a9f0a8380</ID>
<code>sample string 1</code>
</right>
<right>
<ID>bc8d9ef5-f766-404e-b5eb-d82a9f0a8380</ID>
<code>sample string 1</code>
</right>
</rights>
<site_id>be690c2d-aab7-4364-82d9-702c23a92a89</site_id>
<zone_id>046bd076-9682-434a-a981-77a6194f5a1c</zone_id>
</pc>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"f7839b41-31a2-4757-85cb-53d43abe19ba"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">f7839b41-31a2-4757-85cb-53d43abe19ba</guid>