POST api/Client/Definition/SaveTeacherDrivingLicenseType

Request Information

URI Parameters

None.

Body Parameters

TeacherDrivingLicenseTypeRequestModel
NameDescriptionTypeAdditional information
DrivingLicenseTypeId

integer

None.

TeacherId

integer

None.

CompanyId

integer

None.

Id

integer

None.

CreatedOn

date

None.

ModifiedOn

date

None.

Status

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DrivingLicenseTypeId": 1,
  "TeacherId": 1,
  "CompanyId": 1,
  "Id": 2,
  "CreatedOn": "2025-10-25T21:01:45.281994+03:00",
  "ModifiedOn": "2025-10-25T21:01:45.281994+03:00",
  "Status": 3
}

application/xml, text/xml

Sample:
<TeacherDrivingLicenseTypeRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition">
  <CreatedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:01:45.281994+03:00</CreatedOn>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2</Id>
  <ModifiedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:01:45.281994+03:00</ModifiedOn>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">3</Status>
  <CompanyId>1</CompanyId>
  <DrivingLicenseTypeId>1</DrivingLicenseTypeId>
  <TeacherId>1</TeacherId>
</TeacherDrivingLicenseTypeRequestModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TeacherDrivingLicenseTypeRequestModel'.

Response Information

Resource Description

ResultModelOfTeacherDrivingLicenseTypeResponseModel
NameDescriptionTypeAdditional information
Response

boolean

None.

Message

string

None.

Exception

string

None.

Data

TeacherDrivingLicenseTypeResponseModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": true,
  "Message": "sample string 2",
  "Exception": "sample string 3",
  "Data": {
    "DrivingLicenseTypeId": 1,
    "TeacherId": 1,
    "TeacherFullName": "sample string 1",
    "DrivingLicenseTypeName": "sample string 2",
    "Id": 3,
    "CreatedOn": "2025-10-25T21:01:45.2975282+03:00",
    "ModifiedOn": "2025-10-25T21:01:45.2975282+03:00",
    "Status": 4
  }
}

application/xml, text/xml

Sample:
<ResultModelOfTeacherDrivingLicenseTypeResponseModelIjrq4xa9 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition">
    <CreatedOn>2025-10-25T21:01:45.2975282+03:00</CreatedOn>
    <Id>3</Id>
    <ModifiedOn>2025-10-25T21:01:45.2975282+03:00</ModifiedOn>
    <Status>4</Status>
    <d2p1:DrivingLicenseTypeId>1</d2p1:DrivingLicenseTypeId>
    <d2p1:DrivingLicenseTypeName>sample string 2</d2p1:DrivingLicenseTypeName>
    <d2p1:TeacherFullName>sample string 1</d2p1:TeacherFullName>
    <d2p1:TeacherId>1</d2p1:TeacherId>
  </Data>
  <Exception>sample string 3</Exception>
  <Message>sample string 2</Message>
  <Response>true</Response>
</ResultModelOfTeacherDrivingLicenseTypeResponseModelIjrq4xa9>