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": "87ac6ed0-5496-4436-8804-9deab5dacc4c",
"DoctorEmail": "sample string 2",
"Period": 3,
"PeriodTypeID": "8b17bd3c-038f-47d5-ade8-0f856edc02a9",
"Note": "sample string 5"
},
"PatientID": "a841a632-b71a-4d48-bfd7-d0fb6ee0abcf",
"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>a841a632-b71a-4d48-bfd7-d0fb6ee0abcf</PatientID>
<WebApiVersion>2</WebApiVersion>
<PatientShareAdd>
<DoctorEmail>sample string 2</DoctorEmail>
<DoctorID>87ac6ed0-5496-4436-8804-9deab5dacc4c</DoctorID>
<Note>sample string 5</Note>
<Period>3</Period>
<PeriodTypeID>8b17bd3c-038f-47d5-ade8-0f856edc02a9</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": "f80093f3-ef32-4ec1-8286-126f2e94a893",
"DoctorID": "ec427c27-af6f-4275-b6f8-c35b6f0f2635",
"DoctorEmail": "sample string 3",
"Period": 4,
"PeriodTypeID": "f68e6fe0-cd8d-43c8-b312-89d5ff49fe0e",
"ExpiresAt": "2026-06-18T12:18:07.1306634+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>ec427c27-af6f-4275-b6f8-c35b6f0f2635</DoctorID>
<ExpiresAt>2026-06-18T12:18:07.1306634+03:00</ExpiresAt>
<Note>sample string 7</Note>
<PatientShareID>f80093f3-ef32-4ec1-8286-126f2e94a893</PatientShareID>
<Period>4</Period>
<PeriodTypeID>f68e6fe0-cd8d-43c8-b312-89d5ff49fe0e</PeriodTypeID>
</PatientShare>
</PatientShareResponse>