POST api/NotesApi/Update
Метод добавления/обновления примечания
Request Information
URI Parameters
None.
Body Parameters
UpdateNoteApiRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| AgreementCode |
Код путевки |
string |
None. |
| Note |
Примечание |
Note |
None. |
Request Formats
application/json, text/json
Sample:
{
"AgreementCode": "sample string 1",
"Note": {
"Id": 1,
"Text": "sample string 1",
"TypeId": 2,
"Created": {
"Serialized": "01.01.1970",
"HasValue": true,
"Milliseconds": 3,
"Format": "sample string 4"
},
"CreatorId": 1,
"CreatorName": "sample string 3"
}
}
application/xml, text/xml
Sample:
<UpdateNoteApiRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Notes">
<AgreementCode>sample string 1</AgreementCode>
<Note xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Client.Contract">
<d2p1:Created xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
<d3p1:_format>sample string 4</d3p1:_format>
<d3p1:_serialized>01.01.1970</d3p1:_serialized>
<d3p1:_value>1970-01-01T03:00:00.003+03:00</d3p1:_value>
</d2p1:Created>
<d2p1:CreatorId>1</d2p1:CreatorId>
<d2p1:CreatorName>sample string 3</d2p1:CreatorName>
<d2p1:Id>1</d2p1:Id>
<d2p1:Text>sample string 1</d2p1:Text>
<d2p1:TypeId>2</d2p1:TypeId>
</Note>
</UpdateNoteApiRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
UpdateNoteApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| AgreementCode |
Код путевки |
string |
None. |
| Note |
Примечание |
Note |
None. |
| ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
Sample:
{
"AgreementCode": "sample string 1",
"Note": {
"Id": 1,
"Text": "sample string 1",
"TypeId": 2,
"Created": {
"Serialized": "01.01.1970",
"HasValue": true,
"Milliseconds": 3,
"Format": "sample string 4"
},
"CreatorId": 1,
"CreatorName": "sample string 3"
},
"RedirectUrl": "sample string 2",
"ResultQueryInfo": {
"ResultsCount": 1,
"HasError": false,
"Info": [],
"CacheStorageTimeEnd": true,
"RefreshPeriod": 0,
"DelFromCacheDateTime": "2025-11-03T22:16:21.4637199+03:00",
"UserMessages": "",
"UserMessagesHtml": ""
}
}
application/xml, text/xml
Sample:
<UpdateNoteApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Notes">
<RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 2</RedirectUrl>
<ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
<_x003C_DelFromCacheDateTime_x003E_k__BackingField>2025-11-03T22:16:21.4637199+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField>
<_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField>
<info />
</ResultQueryInfo>
<AgreementCode>sample string 1</AgreementCode>
<Note xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Client.Contract">
<d2p1:Created xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">
<d3p1:_format>sample string 4</d3p1:_format>
<d3p1:_serialized>01.01.1970</d3p1:_serialized>
<d3p1:_value>1970-01-01T03:00:00.003+03:00</d3p1:_value>
</d2p1:Created>
<d2p1:CreatorId>1</d2p1:CreatorId>
<d2p1:CreatorName>sample string 3</d2p1:CreatorName>
<d2p1:Id>1</d2p1:Id>
<d2p1:Text>sample string 1</d2p1:Text>
<d2p1:TypeId>2</d2p1:TypeId>
</Note>
</UpdateNoteApiResponse>