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": "97a05960-b398-4761-b52f-b1a9e9c5de2b",
"DoctorEmail": "sample string 2",
"Period": 3,
"PeriodTypeID": "d35fc564-4019-489b-9232-c914ac64cd42",
"Note": "sample string 5"
},
"PatientID": "343589bc-b90c-470b-bfd3-1789149d21b3",
"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>343589bc-b90c-470b-bfd3-1789149d21b3</PatientID>
<WebApiVersion>2</WebApiVersion>
<PatientShareAdd>
<DoctorEmail>sample string 2</DoctorEmail>
<DoctorID>97a05960-b398-4761-b52f-b1a9e9c5de2b</DoctorID>
<Note>sample string 5</Note>
<Period>3</Period>
<PeriodTypeID>d35fc564-4019-489b-9232-c914ac64cd42</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": "e936ff2d-3a2a-4537-a942-3e5ea604f854",
"DoctorID": "14771303-5f3a-4726-b240-ed83861e5552",
"DoctorEmail": "sample string 3",
"Period": 4,
"PeriodTypeID": "8dfad9aa-74d8-447e-b251-cd2440edc8e7",
"ExpiresAt": "2026-08-12T11:43:56.6306328+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>14771303-5f3a-4726-b240-ed83861e5552</DoctorID>
<ExpiresAt>2026-08-12T11:43:56.6306328+03:00</ExpiresAt>
<Note>sample string 7</Note>
<PatientShareID>e936ff2d-3a2a-4537-a942-3e5ea604f854</PatientShareID>
<Period>4</Period>
<PeriodTypeID>8dfad9aa-74d8-447e-b251-cd2440edc8e7</PeriodTypeID>
</PatientShare>
</PatientShareResponse>