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": "2f24781d-94ba-4da7-905e-8c03bcb1d1c2",
  "program_id": "5e94ddfb-2cea-4042-859d-693c8d2fa313",
  "code": 3,
  "name": "sample string 4",
  "medistream_program_step_type_id": "a71df9f2-96bd-4022-ae8c-b4abdaf861a8",
  "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>2f24781d-94ba-4da7-905e-8c03bcb1d1c2</id>
  <medistream_program_step_type_id>a71df9f2-96bd-4022-ae8c-b4abdaf861a8</medistream_program_step_type_id>
  <name>sample string 4</name>
  <program_id>5e94ddfb-2cea-4042-859d-693c8d2fa313</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:
"975849f7-97fb-4859-b070-0848e7871565"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">975849f7-97fb-4859-b070-0848e7871565</guid>