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": "e76d7d44-86d1-47e1-b0d3-6b37575d3d3f",
"db_login": "sample string 2",
"db_name": "sample string 3",
"db_password": "sample string 4",
"db_source": "sample string 5",
"id": "a2134835-50de-4302-b054-6b19ba8c4d83",
"local_ip": "sample string 7",
"lock_id": "e5425f6a-e43b-4a45-9982-6dc202b58a41",
"mac_address": "sample string 8",
"name": "sample string 9",
"pc_type_id": "cf8145ca-9296-499f-bf2c-1224d59d570b",
"rights": [
{
"code": "sample string 1",
"id": "08624f35-4e4b-4d99-ad78-075e6d266a69"
},
{
"code": "sample string 1",
"id": "08624f35-4e4b-4d99-ad78-075e6d266a69"
}
],
"site_id": "b219f29f-87b7-4251-883c-8fcd39e8d823",
"zone_id": "7ffa9d7d-05a9-44e8-b602-1653a9d9ff41"
}
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>e76d7d44-86d1-47e1-b0d3-6b37575d3d3f</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>a2134835-50de-4302-b054-6b19ba8c4d83</id>
<local_ip>sample string 7</local_ip>
<lock_id>e5425f6a-e43b-4a45-9982-6dc202b58a41</lock_id>
<mac_address>sample string 8</mac_address>
<name>sample string 9</name>
<pc_type_id>cf8145ca-9296-499f-bf2c-1224d59d570b</pc_type_id>
<rights>
<right>
<ID>08624f35-4e4b-4d99-ad78-075e6d266a69</ID>
<code>sample string 1</code>
</right>
<right>
<ID>08624f35-4e4b-4d99-ad78-075e6d266a69</ID>
<code>sample string 1</code>
</right>
</rights>
<site_id>b219f29f-87b7-4251-883c-8fcd39e8d823</site_id>
<zone_id>7ffa9d7d-05a9-44e8-b602-1653a9d9ff41</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:
"c891453d-d580-4bf8-bb3c-b9c2d628c822"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c891453d-d580-4bf8-bb3c-b9c2d628c822</guid>