POST api/document/share/{id}
share or unshare documents, reports, images etc uploaded by user
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
object representing logged in userid to share documents. |
integer |
Required |
Body Parameters
id to share documents
DocumentReqName | Description | Type | Additional information |
---|---|---|---|
docs |
documents to share or unshare |
Collection of ShareUnshareDocument |
Required |
Request Formats
application/json, text/json
Sample:
{ "docs": [ { "doc_id": 1, "org_member_id": 2, "org_id": 1, "is_shared": true }, { "doc_id": 1, "org_member_id": 2, "org_id": 1, "is_shared": true } ] }
application/xml, text/xml
Sample:
<document_req xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg.v5"> <docs> <share_unshare_document> <doc_id>1</doc_id> <is_shared>true</is_shared> <org_id>1</org_id> <org_member_id>2</org_member_id> </share_unshare_document> <share_unshare_document> <doc_id>1</doc_id> <is_shared>true</is_shared> <org_id>1</org_id> <org_member_id>2</org_member_id> </share_unshare_document> </docs> </document_req>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, Lifetrons response codes On failure, Lifetrons response codes
ResponseName | Description | Type | Additional information |
---|---|---|---|
resp_code |
Lifetrons response code |
string |
None. |
resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "resp_code": "sample string 1", "resp_msg": "sample string 2" }
application/xml, text/xml
Sample:
<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>