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": "d5f5b6e2-3148-44e4-89d3-f3062989c27d",
  "program_id": "32742ef3-5715-4594-9c97-757e94b41e67",
  "code": 3,
  "name": "sample string 4",
  "medistream_program_step_type_id": "8aaf190f-dcc2-497e-b852-fe1e1f40049a",
  "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>d5f5b6e2-3148-44e4-89d3-f3062989c27d</id>
  <medistream_program_step_type_id>8aaf190f-dcc2-497e-b852-fe1e1f40049a</medistream_program_step_type_id>
  <name>sample string 4</name>
  <program_id>32742ef3-5715-4594-9c97-757e94b41e67</program_id>
</medistream_program_step>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"218912cf-1fa6-47a0-81d3-51d83326e4c6"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">218912cf-1fa6-47a0-81d3-51d83326e4c6</guid>