LogoLogo
  • Go to Docs Center
  • Welcome to Plum Insight
  • How to...
    • Use Plum's Transcription
  • Account Manager
    • Managing Phone Numbers
    • Managing User Settings
    • Managing Users
    • Managing Metadata
  • Creating A Survey
    • Survey Basics
    • Using Pages
    • Question Types
      • Multiple Choice
      • Multiselect
      • Scale
      • Yes/No
      • Comment
      • Date
      • Time
      • Currency
      • Number
      • Digits
      • Name
      • Address
      • Transfer
      • SOAP
      • Prompt
      • Subdialog
      • Metadata Filter
      • Metadata Store
      • Multilingual
  • Prompt Manager
    • Bulk Uploading for Audio Prompts
  • Survey Settings
    • Phone
    • Web
    • Mobile
  • Metadata Manager
    • Layout
    • Creating a Metadatabase
    • Viewing/Editing a Metadatabase
    • Managing a Metadatabase
    • Formatting Metadatabase CSV
  • Survey Manager
    • Locking Surveys
    • Sharing Surveys
    • Cloning Surveys
    • Clearing Survey Data
    • Deleting Surveys
    • Importing Surveys and Data
  • Deployment
    • Deployment Management
    • Outbound Queue
    • Queueing Calls
  • Reporting
    • Viewing a Report
    • Available Charts
    • Edit Filters
    • Survey Visits
    • Printer Friendly View
    • Single vs Multi-Survey Reports
    • Merging Questions
    • Translating Unix timestamps
  • API
    • Checking Total Responses for a Survey
    • Queuing an Outbound Call
    • Queuing Multiple Outbound Calls
    • Checking Status for an Outbound Call
    • Cancelling All Pending Outbound Calls
    • Adding Metadatabase Records
    • Survey Response Reporting
  • Data Integration
    • Automatic Web Services
    • Plum Insight Webservice Question Type
    • SOAP Integration
    • REST Integration
    • Subdialog Integration
    • Result URL
    • Associating Metadata with a Caller
Powered by GitBook
On this page
  • Cancel All Pending Outbound Calls
  • Possible Response Codes
  • Sample Code
  1. API

Cancelling All Pending Outbound Calls

Cancel All Pending Outbound Calls

DELETE https://insight.plumvoice.com/api/surveys/{survey_id}/{instance_id}/cancel

Cancel all pending outbound calls in the call queue.

Path Parameters

Name
Type
Description

survey_id

string

Plum Insight survey ID number

instance_id

string

Plum Insight survey instance number

Headers

Name
Type
Description

content-type

string

application/x-www-form-urlencoded

{'success':false,'error':'The specified deployment was not found for this survey.'}
<result>
  <success>false</success>
  <error>The specified deployment was not found for this survey.</error>.
</result>

Possible Response Codes

Note: On a successful response (HTTP code 202), no body will be returned.

  • 202: calls successfully marked for deletion

  • 401: authentication headers invalid or the account is inactive

  • 403: the account attempting to cancel calls does not have appropriate permissions

  • 404: deployment was not found by the supplied survey and instance id

  • 405: invalid HTTP method supplied (only DELETE allowed)

  • 415: unsupported media type (Content-Type value in request)

  • 500: database error

The return structure will contain the following item(s):

Name

Data Type

Always Present

Description

success

boolean

no

Indicates the outcome of the request. This will only be present when the response http code is something other than HTTP 202, indicating a failure.

error

string

no

If the success value is false this provides a message indicating what error(s) occurred. This will only be present when the response http code is something other than HTTP 202, indicating a failure.

Sample Code

This sample PHP code that makes a request to this method:

<?php
$ch = curl_init();
$url = 'https://insight.plumvoice.com/api/surveys/{survey_id}/{instance_id}/cancel';
$username = 'you@yourdomain.com';
$password = 'your_developer_key';
curl_setopt($ch, CURLOPT_USERPWD, $username.":".$password);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json", "Content-Type: application/x-www-form-urlencoded"));
$result = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
var_dump($result);
var_dump($http_code);
PreviousChecking Status for an Outbound CallNextAdding Metadatabase Records

Last updated 5 years ago