POST api/pcconfigapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

PcConfigViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

id

globally unique identifier

None.

key

globally unique identifier

Required

pc_id

globally unique identifier

Required

value

string

String length: inclusive between 0 and 100

Request Formats

application/json, text/json

Sample:
{
  "active": true,
  "id": "8f8ea612-dfe4-439b-9060-8525d719f9e0",
  "key": "511a7ed3-4704-4887-ad96-9254e08ef32d",
  "pc_id": "188b5613-f183-461d-98d1-abd7b68a914f",
  "value": "sample string 3"
}

application/xml, text/xml

Sample:
<pc_config xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <id>8f8ea612-dfe4-439b-9060-8525d719f9e0</id>
  <key>511a7ed3-4704-4887-ad96-9254e08ef32d</key>
  <pc_id>188b5613-f183-461d-98d1-abd7b68a914f</pc_id>
  <value>sample string 3</value>
</pc_config>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PcConfigViewModel'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"27ac3c00-3599-48f0-8011-4b7ea2a642e5"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">27ac3c00-3599-48f0-8011-4b7ea2a642e5</guid>