POST api/clientapi/replace
Request Information
URI Parameters
None.
Body Parameters
ReplaceClientsRequestName | Description | Type | Additional information |
---|---|---|---|
ClientFieldsForGrouping | Collection of string |
None. |
|
IsAutoReplaceRequest | boolean |
None. |
|
MaxGroupSize | integer |
None. |
|
clientId | integer |
None. |
|
clientsToReplace | Collection of integer |
None. |
|
CurrentUserID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "ClientFieldsForGrouping": [ "sample string 1", "sample string 2" ], "IsAutoReplaceRequest": true, "MaxGroupSize": 1, "clientId": 2, "clientsToReplace": [ 1, 2 ], "CurrentUserID": 1 }
application/xml, text/xml
Sample:
<ReplaceClientsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Megatec.MasterAgent.Entities.WebServiceContracts"> <CurrentUserID xmlns="http://schemas.datacontract.org/2004/07/Megatec.MasterAgent.Entities.WebServiceContracts.DictionaryContracts">1</CurrentUserID> <ClientFieldsForGrouping xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </ClientFieldsForGrouping> <IsAutoReplaceRequest>true</IsAutoReplaceRequest> <MaxGroupSize>1</MaxGroupSize> <clientId>2</clientId> <clientsToReplace xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </clientsToReplace> </ReplaceClientsRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ReplaceClientsResponseName | Description | Type | Additional information |
---|---|---|---|
ReplacedReferencesCount | integer |
None. |
|
TouristId | integer |
None. |
|
IsSuccess | boolean |
None. |
|
ResultQueryInfo |
Сообщения |
ResultQueryInfoContainer |
None. |
Response Formats
application/json, text/json
Sample:
{ "ReplacedReferencesCount": 1, "TouristId": 2, "IsSuccess": true, "RedirectUrl": "sample string 4", "ResultQueryInfo": { "ResultsCount": 1, "HasError": false, "Info": [], "CacheStorageTimeEnd": true, "RefreshPeriod": 0, "DelFromCacheDateTime": "2024-11-23T17:42:47.2035651+03:00", "UserMessages": "", "UserMessagesHtml": "" } }
application/xml, text/xml
Sample:
<ReplaceClientsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Client.Contract"> <RedirectUrl xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract">sample string 4</RedirectUrl> <ResultQueryInfo xmlns="http://schemas.datacontract.org/2004/07/Mag.TourGate.TourGateWebClient.Models.Common.Contract"> <_x003C_DelFromCacheDateTime_x003E_k__BackingField>2024-11-23T17:42:47.2035651+03:00</_x003C_DelFromCacheDateTime_x003E_k__BackingField> <_x003C_ResultsCount_x003E_k__BackingField>1</_x003C_ResultsCount_x003E_k__BackingField> <info /> </ResultQueryInfo> <IsSuccess>true</IsSuccess> <ReplacedReferencesCount>1</ReplacedReferencesCount> <TouristId>2</TouristId> </ReplaceClientsResponse>