POST api/distributionapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
DistributionViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| name | string |
String length: inclusive between 0 and 100 |
|
| communication_server_id | globally unique identifier |
Required |
|
| active | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"id": "5431cdc1-00f4-441a-968b-1126de2d0565",
"name": "sample string 2",
"communication_server_id": "6f08648f-417d-478b-b018-769104be081f",
"active": true
}
application/xml, text/xml
Sample:
<distribution xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <communication_server_id>6f08648f-417d-478b-b018-769104be081f</communication_server_id> <id>5431cdc1-00f4-441a-968b-1126de2d0565</id> <name>sample string 2</name> </distribution>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"34bd6c50-ae3f-491b-a23f-cb4554508774"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">34bd6c50-ae3f-491b-a23f-cb4554508774</guid>