POST api/PatientMobileDevices
Activates the device.
Request Information
URI Parameters
None.
Body Parameters
Model used to activate the mobile device.
PatientMobileDeviceModelName | Description | Type | Additional information |
---|---|---|---|
Name |
Name of the device to be activated (Required). |
string |
None. |
OSDeviceId |
Device ID (Required). See iOS or Android documentation. |
string |
None. |
DeviceToken |
Device token or key to use while pushing notifications (Required). See iOS or Android documentation. |
string |
None. |
OperativeSystem |
Operative system in the device (Ios or Android). |
string |
None. |
Type |
Device type (Generic, Cellphone, Tablet or Laptop). |
string |
None. |
Enabled |
Indicates if the device has enabled/disabled push notifications. |
boolean |
None. |
Request Formats
application/json, text/json
{ "Name": "sample string 1", "OSDeviceId": "sample string 2", "DeviceToken": "sample string 3", "OperativeSystem": "sample string 4", "Type": "sample string 5", "Enabled": true }
application/xml, text/xml
<PatientMobileDeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.PatientMobileDevices"> <DeviceToken>sample string 3</DeviceToken> <Enabled>true</Enabled> <Name>sample string 1</Name> <OSDeviceId>sample string 2</OSDeviceId> <OperativeSystem>sample string 4</OperativeSystem> <Type>sample string 5</Type> </PatientMobileDeviceModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
PatientMobileDeviceModelName | Description | Type | Additional information |
---|---|---|---|
Name |
Name of the device to be activated (Required). |
string |
None. |
OSDeviceId |
Device ID (Required). See iOS or Android documentation. |
string |
None. |
DeviceToken |
Device token or key to use while pushing notifications (Required). See iOS or Android documentation. |
string |
None. |
OperativeSystem |
Operative system in the device (Ios or Android). |
string |
None. |
Type |
Device type (Generic, Cellphone, Tablet or Laptop). |
string |
None. |
Enabled |
Indicates if the device has enabled/disabled push notifications. |
boolean |
None. |
Response Formats
application/json, text/json
{ "Name": "sample string 1", "OSDeviceId": "sample string 2", "DeviceToken": "sample string 3", "OperativeSystem": "sample string 4", "Type": "sample string 5", "Enabled": true }
application/xml, text/xml
<PatientMobileDeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.PatientMobileDevices"> <DeviceToken>sample string 3</DeviceToken> <Enabled>true</Enabled> <Name>sample string 1</Name> <OSDeviceId>sample string 2</OSDeviceId> <OperativeSystem>sample string 4</OperativeSystem> <Type>sample string 5</Type> </PatientMobileDeviceModel>