POST Api/ParticipantDevice/Put
This method allows a provider to assign a device to a participant.
Request Information
URI Parameters
None.
Body Parameters
ParticipantDeviceAssignment| Name | Description | Type | Additional information |
|---|---|---|---|
| alert_id |
The unique id of the participant as assigned by TouchPointCare |
integer |
None. |
| device_type |
The type of vital using the following format:
|
string |
None. |
| device_id |
The lower bounds of the alert threshold. Results above this value are valid. |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"alert_id": 1,
"device_type": "sample string 2",
"device_id": "sample string 3"
}
application/xml, text/xml
Sample:
<ParticipantDeviceAssignment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPC.API.Models"> <alert_id>1</alert_id> <device_id>sample string 3</device_id> <device_type>sample string 2</device_type> </ParticipantDeviceAssignment>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
TPCResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| result | string |
None. |
|
| error_code | integer |
None. |
|
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"result": "sample string 1",
"error_code": 1,
"message": "sample string 2"
}
application/xml, text/xml
Sample:
<TPCResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPC.API.Models"> <error_code>1</error_code> <message>sample string 2</message> <result>sample string 1</result> </TPCResponse>