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": "62ea83ed-e995-48f9-a8dd-fbaa19042128",
"db_login": "sample string 2",
"db_name": "sample string 3",
"db_password": "sample string 4",
"db_source": "sample string 5",
"id": "70f0cbf1-6090-4056-8c36-d43a39f3f6b7",
"local_ip": "sample string 7",
"lock_id": "1d6e432d-e51a-47a2-a666-6a3bdd19abf2",
"mac_address": "sample string 8",
"name": "sample string 9",
"pc_type_id": "5e57719b-43a9-4052-ab3e-19fd5329b7bc",
"rights": [
{
"code": "sample string 1",
"id": "954475fa-f1ee-4ef8-be17-66cc04f7eb19"
},
{
"code": "sample string 1",
"id": "954475fa-f1ee-4ef8-be17-66cc04f7eb19"
}
],
"site_id": "efa805a2-33d8-49bd-a86a-5c365c36fecc",
"zone_id": "d87e9b1e-a245-4f6d-a3d2-55dce2b9e9c2"
}
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>62ea83ed-e995-48f9-a8dd-fbaa19042128</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>70f0cbf1-6090-4056-8c36-d43a39f3f6b7</id>
<local_ip>sample string 7</local_ip>
<lock_id>1d6e432d-e51a-47a2-a666-6a3bdd19abf2</lock_id>
<mac_address>sample string 8</mac_address>
<name>sample string 9</name>
<pc_type_id>5e57719b-43a9-4052-ab3e-19fd5329b7bc</pc_type_id>
<rights>
<right>
<ID>954475fa-f1ee-4ef8-be17-66cc04f7eb19</ID>
<code>sample string 1</code>
</right>
<right>
<ID>954475fa-f1ee-4ef8-be17-66cc04f7eb19</ID>
<code>sample string 1</code>
</right>
</rights>
<site_id>efa805a2-33d8-49bd-a86a-5c365c36fecc</site_id>
<zone_id>d87e9b1e-a245-4f6d-a3d2-55dce2b9e9c2</zone_id>
</pc>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"d7165c4d-3fe5-492c-bfc8-406bf133fbe8"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">d7165c4d-3fe5-492c-bfc8-406bf133fbe8</guid>