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": "cdf7ebcc-7f9f-4a4a-a6cf-6a13cc02435d",
    "DoctorEmail": "sample string 2",
    "Period": 3,
    "PeriodTypeID": "ef2251d3-d7d6-4566-9fe1-1117ae1df049",
    "Note": "sample string 5"
  },
  "PatientID": "4ae68dbf-3761-49d6-98f4-71cadb32ce35",
  "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>4ae68dbf-3761-49d6-98f4-71cadb32ce35</PatientID>
  <WebApiVersion>2</WebApiVersion>
  <PatientShareAdd>
    <DoctorEmail>sample string 2</DoctorEmail>
    <DoctorID>cdf7ebcc-7f9f-4a4a-a6cf-6a13cc02435d</DoctorID>
    <Note>sample string 5</Note>
    <Period>3</Period>
    <PeriodTypeID>ef2251d3-d7d6-4566-9fe1-1117ae1df049</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": "90f4c87e-0869-49c3-8db4-af928682edf2",
    "DoctorID": "4c404449-46bf-4983-8bea-279258e7c7b4",
    "DoctorEmail": "sample string 3",
    "Period": 4,
    "PeriodTypeID": "d37c762c-a83a-4155-abaf-258a17560f75",
    "ExpiresAt": "2025-12-11T14:38:54.8910519+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>4c404449-46bf-4983-8bea-279258e7c7b4</DoctorID>
    <ExpiresAt>2025-12-11T14:38:54.8910519+03:00</ExpiresAt>
    <Note>sample string 7</Note>
    <PatientShareID>90f4c87e-0869-49c3-8db4-af928682edf2</PatientShareID>
    <Period>4</Period>
    <PeriodTypeID>d37c762c-a83a-4155-abaf-258a17560f75</PeriodTypeID>
  </PatientShare>
</PatientShareResponse>