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": "5342f13f-a592-41fe-943f-feeb8f647e12",
  "program_id": "5292406b-1816-4a79-93ac-70a532d91478",
  "code": 3,
  "name": "sample string 4",
  "medistream_program_step_type_id": "2b0bfb6c-e5ce-41c4-8f19-25d156716c11",
  "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>5342f13f-a592-41fe-943f-feeb8f647e12</id>
  <medistream_program_step_type_id>2b0bfb6c-e5ce-41c4-8f19-25d156716c11</medistream_program_step_type_id>
  <name>sample string 4</name>
  <program_id>5292406b-1816-4a79-93ac-70a532d91478</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:
"1b03414e-77ea-4ed8-a345-bcc305b57f15"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1b03414e-77ea-4ed8-a345-bcc305b57f15</guid>