POST api/medistreamprogramapi/add?siteId={siteId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
None. |
Body Parameters
MediStreamProgramViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| medistream_id | globally unique identifier |
Required |
|
| id | globally unique identifier |
None. |
|
| local_id | integer |
Range: inclusive between 0 and ∞ |
|
| name | string |
Required |
|
| active | boolean |
Required |
|
| duration | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"medistream_id": "c88b223f-c132-4458-948d-5d4991aa331d",
"id": "1cb25332-dbdc-4c4c-8f3f-d8c893d2c5cb",
"local_id": 1,
"name": "sample string 3",
"active": true,
"duration": 1
}
application/xml, text/xml
Sample:
<medistream_program xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <duration>1</duration> <id>1cb25332-dbdc-4c4c-8f3f-d8c893d2c5cb</id> <local_id>1</local_id> <medistream_id>c88b223f-c132-4458-948d-5d4991aa331d</medistream_id> <name>sample string 3</name> </medistream_program>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"fce5366a-d908-4688-ba83-3c2249e53e30"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">fce5366a-d908-4688-ba83-3c2249e53e30</guid>