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": "dcba653a-d438-47f6-92c5-1d5fc9a0d2bc",
  "local_id": 1,
  "mediwave_id": "a7da5e0d-2f15-4dc7-b981-cc1929b567c0",
  "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>dcba653a-d438-47f6-92c5-1d5fc9a0d2bc</id>
  <local_id>1</local_id>
  <mediwave_id>a7da5e0d-2f15-4dc7-b981-cc1929b567c0</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:
"ab0e53b8-a0ef-4a84-a8a1-aa9a8db4bba9"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">ab0e53b8-a0ef-4a84-a8a1-aa9a8db4bba9</guid>