POST api/CommunicationRoutesAndGateway/SaveCommunicationRoutingGateway
Request Information
URI Parameters
None.
Body Parameters
CommunicationGatewaySaveRequestViewModelName | Description | Type | Additional information |
---|---|---|---|
AccountId | string |
Required |
|
ParentAccountId | string |
Required |
|
UserId | string |
Required |
|
SID | string |
Required |
|
Token | string |
None. |
|
GatewayType | CommunicationRouteGatewayType |
Required |
|
RouteType | CommunicationRouteType |
Required |
|
NumberDetails | Collection of SaveNumberRequestVM |
None. |
|
AccountIds | Collection of string |
None. |
|
AccountName | string |
None. |
|
Domain | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "AccountId": "sample string 1", "ParentAccountId": "sample string 2", "UserId": "sample string 3", "SID": "sample string 4", "Token": "sample string 5", "GatewayType": "Aerialink", "RouteType": "Email", "NumberDetails": [ { "CountryId": "sample string 1", "Number": "sample string 2", "IsSmsEnabled": true, "IsMMSEnabled": true, "IsVoiceEnabled": true, "Locality": "sample string 6", "IsoCountry": "sample string 7", "PostalCode": "sample string 8", "Region": "sample string 9", "NumberType": "Unknown", "City": "sample string 10", "State": "sample string 11", "NumberSID": "sample string 12", "CountryFlagUrl": "sample string 13" }, { "CountryId": "sample string 1", "Number": "sample string 2", "IsSmsEnabled": true, "IsMMSEnabled": true, "IsVoiceEnabled": true, "Locality": "sample string 6", "IsoCountry": "sample string 7", "PostalCode": "sample string 8", "Region": "sample string 9", "NumberType": "Unknown", "City": "sample string 10", "State": "sample string 11", "NumberSID": "sample string 12", "CountryFlagUrl": "sample string 13" } ], "AccountIds": [ "sample string 1", "sample string 2" ], "AccountName": "sample string 6", "Domain": "sample string 7" }
application/xml, text/xml
Sample:
<CommunicationGatewaySaveRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.CommunicationRoutesAndGateway"> <AccountId>sample string 1</AccountId> <AccountIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </AccountIds> <AccountName>sample string 6</AccountName> <Domain>sample string 7</Domain> <GatewayType>Aerialink</GatewayType> <NumberDetails> <SaveNumberRequestVM> <City xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 10</City> <CountryFlagUrl xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 13</CountryFlagUrl> <IsMMSEnabled xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">true</IsMMSEnabled> <IsSmsEnabled xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">true</IsSmsEnabled> <IsVoiceEnabled xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">true</IsVoiceEnabled> <IsoCountry xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 7</IsoCountry> <Locality xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 6</Locality> <Number xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 2</Number> <NumberSID xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 12</NumberSID> <NumberType xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">Unknown</NumberType> <PostalCode xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 8</PostalCode> <Region xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 9</Region> <State xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 11</State> <CountryId>sample string 1</CountryId> </SaveNumberRequestVM> <SaveNumberRequestVM> <City xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 10</City> <CountryFlagUrl xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 13</CountryFlagUrl> <IsMMSEnabled xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">true</IsMMSEnabled> <IsSmsEnabled xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">true</IsSmsEnabled> <IsVoiceEnabled xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">true</IsVoiceEnabled> <IsoCountry xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 7</IsoCountry> <Locality xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 6</Locality> <Number xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 2</Number> <NumberSID xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 12</NumberSID> <NumberType xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">Unknown</NumberType> <PostalCode xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 8</PostalCode> <Region xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 9</Region> <State xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.CommunicationRoutesAndGateways">sample string 11</State> <CountryId>sample string 1</CountryId> </SaveNumberRequestVM> </NumberDetails> <ParentAccountId>sample string 2</ParentAccountId> <RouteType>Email</RouteType> <SID>sample string 4</SID> <Token>sample string 5</Token> <UserId>sample string 3</UserId> </CommunicationGatewaySaveRequestViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.