POST api/AdditionalValuesApi
Request Information
URI Parameters
None.
Body Parameters
UpdateAdditionalValuesApiRequestName | Description | Type | Additional information |
---|---|---|---|
objectType |
тип объекта для обновления доп описания возможные значения(обновляется): "Agreement" |
string |
None. |
code |
код путевки, если есть и objectType == "Agreement" |
string |
None. |
request |
Массив доп описаний в формате : [{"ValueId": id доп описания(int),"Value": "новое значение(string)(если множественные доп описания, то через запятую(1,2,3))"},{...}] |
Collection of AdditionalValueToUpdate |
None. |
id |
id объкта, по кторому обновляется доп описание (int) |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "objectType": "sample string 1", "code": "sample string 2", "request": [ { "ValueId": 1, "Value": "sample string 2" }, { "ValueId": 1, "Value": "sample string 2" } ], "id": "sample string 3" }
application/xml, text/xml
Sample:
<UpdateAdditionalValuesApiRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.AdditionalValues"> <code>sample string 2</code> <id>sample string 3</id> <objectType>sample string 1</objectType> <request> <AdditionalValueToUpdate> <Value>sample string 2</Value> <ValueId>1</ValueId> </AdditionalValueToUpdate> <AdditionalValueToUpdate> <Value>sample string 2</Value> <ValueId>1</ValueId> </AdditionalValueToUpdate> </request> </UpdateAdditionalValuesApiRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
UpdateAdditionalValuesApiResponseName | Description | Type | Additional information |
---|---|---|---|
Message | string |
None. |
|
Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Message": "sample string 1", "Success": true }
application/xml, text/xml
Sample:
<UpdateAdditionalValuesApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.AdditionalValues"> <Message>sample string 1</Message> <Success>true</Success> </UpdateAdditionalValuesApiResponse>