POST api/mediwaveprogramstepapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

MediWaveProgramStepViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

code

integer

Required

Range: inclusive between 0 and ∞

id

globally unique identifier

None.

program_id

globally unique identifier

Required

mediwave_program_step_type_id

globally unique identifier

Required

name

string

Required

Request Formats

application/json, text/json

Sample:
{
  "active": true,
  "code": 2,
  "id": "01e60090-94c8-431d-b4d6-fef73578b01c",
  "program_id": "c12f8b71-c08f-4424-82fc-0c75d58c6e76",
  "mediwave_program_step_type_id": "6ea828c6-0220-4cbf-9fbe-443ec1f1d400",
  "name": "sample string 6"
}

application/xml, text/xml

Sample:
<mediwave_program_step xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <code>2</code>
  <id>01e60090-94c8-431d-b4d6-fef73578b01c</id>
  <mediwave_program_step_type_id>6ea828c6-0220-4cbf-9fbe-443ec1f1d400</mediwave_program_step_type_id>
  <name>sample string 6</name>
  <program_id>c12f8b71-c08f-4424-82fc-0c75d58c6e76</program_id>
</mediwave_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:
"5d12daa8-3d10-4a14-9d48-d80e6366f780"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5d12daa8-3d10-4a14-9d48-d80e6366f780</guid>