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": "3db26295-2638-4759-a69a-b832a6019efd",
  "program_id": "88c2b77d-e875-4b3c-b89d-077d19af3f7f",
  "code": 3,
  "name": "sample string 4",
  "medistream_program_step_type_id": "58516e5e-f70b-4957-b26d-8f4d4989de15",
  "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>3db26295-2638-4759-a69a-b832a6019efd</id>
  <medistream_program_step_type_id>58516e5e-f70b-4957-b26d-8f4d4989de15</medistream_program_step_type_id>
  <name>sample string 4</name>
  <program_id>88c2b77d-e875-4b3c-b89d-077d19af3f7f</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:
"f0499fff-3918-4b04-a97e-128fa217032e"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">f0499fff-3918-4b04-a97e-128fa217032e</guid>