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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

MediStreamProgramStepViewModel
NameDescriptionTypeAdditional information
id

globally unique identifier

None.

program_id

globally unique identifier

Required

code

integer

Required

Range: inclusive between 0 and ∞

name

string

Required

medistream_program_step_type_id

globally unique identifier

Required

active

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "id": "11b83100-1581-4dbf-a6a2-febe23247267",
  "program_id": "615eda58-9c56-450b-a628-f7c351bbe2fa",
  "code": 3,
  "name": "sample string 4",
  "medistream_program_step_type_id": "179cfa0d-5b2b-4d8a-a0d9-8811c8e02faf",
  "active": true
}

application/xml, text/xml

Sample:
<medistream_program_step xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <code>3</code>
  <id>11b83100-1581-4dbf-a6a2-febe23247267</id>
  <medistream_program_step_type_id>179cfa0d-5b2b-4d8a-a0d9-8811c8e02faf</medistream_program_step_type_id>
  <name>sample string 4</name>
  <program_id>615eda58-9c56-450b-a628-f7c351bbe2fa</program_id>
</medistream_program_step>

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 'MediStreamProgramStepViewModel'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"e75843cb-a536-40c9-882a-ff1a3b9bc185"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">e75843cb-a536-40c9-882a-ff1a3b9bc185</guid>