Create New Survey Distribution via SMS
POST {{baseUrl}}/distributions/sms
Returns SMS distribution info.
This API uses a 16-second timeout instead of the default timeout.
Request Body
{"surveyId"=>"SV_080LO2R7csetMK9", "method"=>"Invite", "sendDate"=>"2020-06-17T00:36:42Z", "recipients"=>{"mailingListId"=>"CG_bwM2NGGLJ6oftCR"}, "name"=>"Example Survey", "message"=>{"libraryId"=>"UR_eDPqMQLv8yQZnIF", "messageId"=>"MS_8vlfvwn12wdf6D3"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"result":{"id":"SMSD_gKFVORSKSkaMtSE","ownerId":"UR_eDPqMQLv8yQZnIF","organizationId":"my_organization","requestStatus":"Scheduled","requestType":"Invite","surveyId":"SV_5iJ5oIPIbLjjAIR","name":"Example Survey","sendDate":"2100-12-16T23:36:42Z","recipients":{"mailingListId":"CG_bj5gfAI4L7vuDTn","transactionBatchId":null,"transactionId":"CTR_6WE7uvDRn8S3XCZ","contactId":null,"libraryId":"UR_eDPqMQLv8yQZnIF","sampleId":null},"message":{"libraryId":"UR_eDPqMQLv8yQZnIF","messageId":"MS_1KNf7Pehdo4Tp0V","messageText":null},"stats":{"sent":0,"failed":0,"started":0,"finished":0,"credits":0,"segments":0}},"meta":{"requestId":"6c7d0d70-f401-4efb-9a21-8e142a6a39bd","httpStatus":"200 - OK"}}