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": "66454961-5d32-4bb5-a4f8-815fb44920d7",
  "program_id": "c173c234-5a6f-46e3-b093-c2acc9161dc7",
  "code": 3,
  "name": "sample string 4",
  "medistream_program_step_type_id": "5647a3ab-a7c3-47fa-a0aa-183ac9cc10fd",
  "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>66454961-5d32-4bb5-a4f8-815fb44920d7</id>
  <medistream_program_step_type_id>5647a3ab-a7c3-47fa-a0aa-183ac9cc10fd</medistream_program_step_type_id>
  <name>sample string 4</name>
  <program_id>c173c234-5a6f-46e3-b093-c2acc9161dc7</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:
"9a0fe296-7929-486a-bb40-56e3074b33f9"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">9a0fe296-7929-486a-bb40-56e3074b33f9</guid>