POST api/TimeTableManagement/ChangeDlineData

Request Information

URI Parameters

None.

Body Parameters

DlineChangeData
NameDescriptionTypeAdditional information
dline

integer

None.

SurgCode

integer

None.

TechCode

integer

None.

InsurCode

integer

None.

OperCodes

Collection of integer

None.

DiaryNum

integer

None.

TimeToAdd

string

None.

ForInet

string

None.

PerfromDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "dline": 1,
  "SurgCode": 1,
  "TechCode": 1,
  "InsurCode": 1,
  "OperCodes": [
    1,
    2
  ],
  "DiaryNum": 1,
  "TimeToAdd": "sample string 1",
  "ForInet": "sample string 2",
  "PerfromDate": "2024-11-13T00:00:00+02:00"
}

application/xml, text/xml

Sample:
<DlineChangeData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DiarysManagement">
  <DiaryNum>1</DiaryNum>
  <ForInet>sample string 2</ForInet>
  <InsurCode>1</InsurCode>
  <OperCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </OperCodes>
  <PerfromDate>2024-11-13T00:00:00+02:00</PerfromDate>
  <SurgCode>1</SurgCode>
  <TechCode>1</TechCode>
  <TimeToAdd>sample string 1</TimeToAdd>
  <dline>1</dline>
</DlineChangeData>

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 'DlineChangeData'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
[
  {},
  {}
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' with data contract name 'ArrayOfanyType:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Linq.EnumerableQuery`1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' with data contract name 'ArrayOfanyType:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to the serializer.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.