POST api/Voice/Create

Request Information

URI Parameters

None.

Body Parameters

VoicePmodel
NameDescriptionTypeAdditional information
campaignName

string

None.

status

integer

None.

shortCode

string

None.

fileName

string

None.

fileExtention

string

None.

fileByte

string

None.

Request Formats

application/json, text/json

Sample: { "campaignName": "sample string 1", "status": 2, "shortCode": "sample string 3", "fileName": "sample string 4", "fileExtention": "sample string 5", "fileByte": "sample string 6" }

application/xml, text/xml

Sample: <VoicePmodel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sms_api.Models.VoicePModel"> <campaignName>sample string 1</campaignName> <fileByte>sample string 6</fileByte> <fileExtention>sample string 5</fileExtention> <fileName>sample string 4</fileName> <shortCode>sample string 3</shortCode> <status>2</status> </VoicePmodel>

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 'VoicePmodel'.

Response Information

Resource Description

ResultSet
NameDescriptionTypeAdditional information
ResultCode

ResultCode

None.

Language

Language

None.

ReplyMessage

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample: { "ResultCode": 0, "Language": 0, "ReplyMessage": "sample string 1", "data": {} }

application/xml, text/xml

Sample: <ResultSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sms_api.Models"> <Language>English</Language> <ReplyMessage>sample string 1</ReplyMessage> <ResultCode>Success</ResultCode> <data /> </ResultSet>