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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

MediWaveProgramViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

duration

integer

None.

id

globally unique identifier

None.

local_id

integer

Range: inclusive between 0 and ∞

mediwave_id

globally unique identifier

Required

name

string

Required

Request Formats

application/json, text/json

Sample:
{
  "active": true,
  "duration": 1,
  "id": "9d946f92-7097-4d5e-b8b1-6c48e92407d4",
  "local_id": 1,
  "mediwave_id": "56c8182c-27b5-474f-ad89-629bf7e72b70",
  "name": "sample string 4"
}

application/xml, text/xml

Sample:
<mediwave_program xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <duration>1</duration>
  <id>9d946f92-7097-4d5e-b8b1-6c48e92407d4</id>
  <local_id>1</local_id>
  <mediwave_id>56c8182c-27b5-474f-ad89-629bf7e72b70</mediwave_id>
  <name>sample string 4</name>
</mediwave_program>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"2923cbfe-0490-4eb2-9c6f-15c3bd35e878"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2923cbfe-0490-4eb2-9c6f-15c3bd35e878</guid>