POST api/DoctorProfile/Edit

Request Information

URI Parameters

None.

Requires Authorization!

Body Parameters

EditDoctorViewModel
NameDescriptionTypeAdditional information
DoctorID

integer

None.

EnName

string

Required

Matching regular expression pattern: [a-zA-Z\s]{1,}

ArName

string

Required

Matching regular expression pattern: [\u0621-\u064A\u0660-\u0669 ]+$

DoctorTitle

string

Required

ExaminationPrice

decimal number

None.

EstimatedExaminationTime

integer

Required

Range: inclusive between 15 and 2147483647

ContactPhoneNumber

string

Matching regular expression pattern: ^0[0-9]{7,12}$

UserID

integer

None.

MoreInfo

string

None.

ReservationsNotes

string

None.

SubSpecialization

string

None.

DoctorAcademicDegreeID

integer

Required

TagNames

Collection of string

None.

academicCertificartions

Collection of AcademicCertificationViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "DoctorID": 1,
  "EnName": "sample string 2",
  "ArName": "sample string 3",
  "DoctorTitle": "sample string 4",
  "ExaminationPrice": 1.1,
  "EstimatedExaminationTime": 5,
  "ContactPhoneNumber": "sample string 6",
  "UserID": 7,
  "MoreInfo": "sample string 8",
  "ReservationsNotes": "sample string 9",
  "SubSpecialization": "sample string 10",
  "DoctorAcademicDegreeID": 11,
  "TagNames": [
    "sample string 1",
    "sample string 2"
  ],
  "academicCertificartions": [
    {
      "CertificationID": 1,
      "EnCertificationName": "sample string 2",
      "ArCertificationName": "sample string 3",
      "DoctorID": 4,
      "DoctorName": "sample string 5",
      "CertificationDate": "2019-10-22T22:29:36.9678314-04:00"
    },
    {
      "CertificationID": 1,
      "EnCertificationName": "sample string 2",
      "ArCertificationName": "sample string 3",
      "DoctorID": 4,
      "DoctorName": "sample string 5",
      "CertificationDate": "2019-10-22T22:29:36.9678314-04:00"
    }
  ]
}

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
Status

integer

None.

Response

Object

None.

Errors

Object

None.

Authorized

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Response": {},
  "Errors": {},
  "Authorized": true
}