POST api/Patient/PatientShareAdd
Request Information
URI Parameters
None.
Body Parameters
PatientShareAddRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PatientShareAdd | PatientShareAdd |
None. |
|
| PatientID | globally unique identifier |
None. |
|
| WebApiVersion | integer |
None. |
|
| Language | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PatientShareAdd": {
"DoctorID": "c282fc55-a6c0-44e7-bd2a-d0432538ce27",
"DoctorEmail": "sample string 2",
"Period": 3,
"PeriodTypeID": "87b4ff75-2593-4507-bda2-3b99187e9269",
"Note": "sample string 5"
},
"PatientID": "160b498c-2634-49e4-b880-60b399a1b6d8",
"WebApiVersion": 2,
"Language": "sample string 3"
}
application/xml, text/xml
Sample:
<PatientShareAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
<Language>sample string 3</Language>
<PatientID>160b498c-2634-49e4-b880-60b399a1b6d8</PatientID>
<WebApiVersion>2</WebApiVersion>
<PatientShareAdd>
<DoctorEmail>sample string 2</DoctorEmail>
<DoctorID>c282fc55-a6c0-44e7-bd2a-d0432538ce27</DoctorID>
<Note>sample string 5</Note>
<Period>3</Period>
<PeriodTypeID>87b4ff75-2593-4507-bda2-3b99187e9269</PeriodTypeID>
</PatientShareAdd>
</PatientShareAddRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PatientShareResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PatientShare | PatientShare |
None. |
|
| WebApiVersion | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"PatientShare": {
"PatientShareID": "ff47da85-bcd4-4c83-9d8a-f2091610c6f7",
"DoctorID": "845739c3-0c89-44cb-835f-42062f463310",
"DoctorEmail": "sample string 3",
"Period": 4,
"PeriodTypeID": "88deea04-75d1-44f4-a294-c11d8bc13f8b",
"ExpiresAt": "2026-04-24T14:22:07.2212981+03:00",
"Note": "sample string 7"
},
"WebApiVersion": 1
}
application/xml, text/xml
Sample:
<PatientShareResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SehatukaAPI.DTO">
<WebApiVersion>1</WebApiVersion>
<PatientShare>
<DoctorEmail>sample string 3</DoctorEmail>
<DoctorID>845739c3-0c89-44cb-835f-42062f463310</DoctorID>
<ExpiresAt>2026-04-24T14:22:07.2212981+03:00</ExpiresAt>
<Note>sample string 7</Note>
<PatientShareID>ff47da85-bcd4-4c83-9d8a-f2091610c6f7</PatientShareID>
<Period>4</Period>
<PeriodTypeID>88deea04-75d1-44f4-a294-c11d8bc13f8b</PeriodTypeID>
</PatientShare>
</PatientShareResponse>