POST api/AdditionalValuesApi/Update/{name}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

string

None.

Body Parameters

UpdateAdditionalValuesApiRequest
NameDescriptionTypeAdditional 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:

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

Response Information

Resource Description

UpdateAdditionalValuesApiResponse
NameDescriptionTypeAdditional 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>