I'm trying to use the adminapi to set a campaign state from disable to enabled using:
https://<server-IP-address>/adminapi/campaign/3/state/enable
I receive the following XML response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<apiErrors>
<apiError>
<errorData>Method Not Allowed</errorData>
<errorMessage>The method specified in the Request-Line is not allowed for the resource identified by the Request-URI</errorMessage>
<errorType>405</errorType>
</apiError>
</apiErrors>
What am I doing wrong, here?
-------------
Response to normal adminapi campaign query is successful:
https://<server-IP-address>/adminapi/campaign/3
Response:
<?xml version="1.0" encoding="UTF-8"?>
<campaign>
<self>https://<server_snipped>/adminapi/campaign/3</self>
<campaignId>3</campaignId>
<campaignName>OutboundIVR-Test</campaignName>
<enabled>false</enabled>
<description>Testing Outbound Dialer</description>
<startTime>00:00</startTime>
<endTime>23:59</endTime>
<timeZone>Central Standard Time</timeZone>
<campaignType>IVR</campaignType>
<dialerType>PROGRESSIVE</dialerType>
<pendingContacts>0</pendingContacts>
<typeSpecificInfo>
<obIvrProgressive>
<campaignCallingNum><stuff_snipped></campaignCallingNum>
<maxDialAttempts>2</maxDialAttempts>
<callbackTimeLimit>2</callbackTimeLimit>
<treatLowVolAsVoice>true</treatLowVolAsVoice>
<noAnswerRingLimit>40</noAnswerRingLimit>
<abandonedCallWaitTime>2</abandonedCallWaitTime>
<retryNoAnswerDelay>4</retryNoAnswerDelay>
<retryBusySignalDelay>4</retryBusySignalDelay>
<retryCustAbandonedDelay>0</retryCustAbandonedDelay>
<retryDialerAbandonedDelay>0</retryDialerAbandonedDelay>
<applicationTrigger name="199999">
<refURL><stuff_snipped>/adminapi/trigger/199999</refURL>
</applicationTrigger>
<numDedicatedPorts>1</numDedicatedPorts>
<linesPerPort>1.0</linesPerPort>
<ansMachineTreatment>TRANSFER_TO_IVR</ansMachineTreatment>
</obIvrProgressive>
</typeSpecificInfo>
</campaign>
Campaigns and Triggers are functioning when enabled. Campaigns become disabled daily after midnight. I want to write a script that will re-enable them.
-Sean