POST api/Patient/PatientShareAdd

Request Information

URI Parameters

None.

Body Parameters

PatientShareAddRequest
NameDescriptionTypeAdditional information
PatientShareAdd

PatientShareAdd

None.

PatientID

globally unique identifier

None.

WebApiVersion

integer

None.

Language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PatientShareAdd": {
    "DoctorID": "a3ac69e2-eb28-4ae1-a86a-dc03852eaca6",
    "DoctorEmail": "sample string 2",
    "Period": 3,
    "PeriodTypeID": "634efb1c-3e9a-4b8f-be5e-251acbfc791f",
    "Note": "sample string 5"
  },
  "PatientID": "5445d657-ad03-4677-a6ee-c041ae20ac87",
  "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>5445d657-ad03-4677-a6ee-c041ae20ac87</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <PatientShareAdd>
    <DoctorEmail>sample string 2</DoctorEmail>
    <DoctorID>a3ac69e2-eb28-4ae1-a86a-dc03852eaca6</DoctorID>
    <Note>sample string 5</Note>
    <Period>3</Period>
    <PeriodTypeID>634efb1c-3e9a-4b8f-be5e-251acbfc791f</PeriodTypeID>
  </PatientShareAdd>
</PatientShareAddRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PatientShareResponse
NameDescriptionTypeAdditional information
PatientShare

PatientShare

None.

WebApiVersion

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PatientShare": {
    "PatientShareID": "c93ba765-fea7-4f07-a418-5750829ce8da",
    "DoctorID": "1bc203d3-7788-408e-aca4-b6b8e78f80d3",
    "DoctorEmail": "sample string 3",
    "Period": 4,
    "PeriodTypeID": "265f34c5-7c33-4e96-b7d7-0e0b60e56fcc",
    "ExpiresAt": "2026-02-28T15:34:31.5128776+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>1bc203d3-7788-408e-aca4-b6b8e78f80d3</DoctorID>
    <ExpiresAt>2026-02-28T15:34:31.5128776+03:00</ExpiresAt>
    <Note>sample string 7</Note>
    <PatientShareID>c93ba765-fea7-4f07-a418-5750829ce8da</PatientShareID>
    <Period>4</Period>
    <PeriodTypeID>265f34c5-7c33-4e96-b7d7-0e0b60e56fcc</PeriodTypeID>
  </PatientShare>
</PatientShareResponse>