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": "6401e62d-2534-4916-a7f3-e442769d1e63",
"name": "sample string 2",
"communication_server_id": "19f84366-aafc-4c80-b2d9-71dc215d0497",
"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>19f84366-aafc-4c80-b2d9-71dc215d0497</communication_server_id> <id>6401e62d-2534-4916-a7f3-e442769d1e63</id> <name>sample string 2</name> </distribution>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"c7eb2257-756c-4755-8593-41c5cb8a3f50"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c7eb2257-756c-4755-8593-41c5cb8a3f50</guid>