POST api/trustedorg/permissions/{id}
share/unshare user permissions health with trusted organizations. It may be user location/medical details/emergency contacts/doctor details etc.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
object representing the details that need to share/unshare user permissions health with trusted organizations. |
integer |
Required |
Body Parameters
object representing the details that need to share/unshare user health permissions with associated trusted org.
HealthPermissionsReq| Name | Description | Type | Additional information |
|---|---|---|---|
| org_id |
user organization like schools and boarding, Workplaces and firms, Medical and Hospitals unique id |
integer |
Required |
| org_branch_id |
user organization like schools and boarding, Workplaces and firms, Medical and Hospitals and it's Branches |
integer |
None. |
| org_member_id |
trusted organization member id |
integer |
Required |
| permissions |
share user health details with doctors/dietitans/experts etc |
HealthPermission |
Required |
Request Formats
application/json, text/json
{
"org_id": 1,
"org_branch_id": 2,
"org_member_id": 3,
"permissions": {
"steps": true,
"activity": true,
"heartrate": true,
"sleep": true,
"water": true,
"bodystats": true,
"food": true,
"medical": true,
"bp": true,
"bs": true,
"whr": true,
"body_measurements": true,
"body_transformation": true
}
}
application/xml, text/xml
<HealthPermissionsReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg">
<org_branch_id>2</org_branch_id>
<org_id>1</org_id>
<org_member_id>3</org_member_id>
<permissions xmlns:d2p1="http://schemas.datacontract.org/2004/07/CommonClasses.user">
<d2p1:activity>true</d2p1:activity>
<d2p1:body_measurements>true</d2p1:body_measurements>
<d2p1:body_transformation>true</d2p1:body_transformation>
<d2p1:bodystats>true</d2p1:bodystats>
<d2p1:bp>true</d2p1:bp>
<d2p1:bs>true</d2p1:bs>
<d2p1:food>true</d2p1:food>
<d2p1:heartrate>true</d2p1:heartrate>
<d2p1:medical>true</d2p1:medical>
<d2p1:sleep>true</d2p1:sleep>
<d2p1:steps>true</d2p1:steps>
<d2p1:water>true</d2p1:water>
<d2p1:whr>true</d2p1:whr>
</permissions>
</HealthPermissionsReq>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
On success, returns Lifetrons response codes On failure, return Lifetrons standard responses codes.
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| resp_code |
Lifetrons response code |
string |
None. |
| resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
{
"resp_code": "sample string 1",
"resp_msg": "sample string 2"
}
application/xml, text/xml
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models"> <resp_code>sample string 1</resp_code> <resp_msg>sample string 2</resp_msg> </Response>