Rich-text Reply

Deleting Optimizely Expirement via API

belsmore 07-02-14
Accepted Solution

Deleting Optimizely Expirement via API

I'm currently trying to add functionality to the Optimizely A/B Headline Test Plugin to be able to delete an expirement from the backend of Wordpress. When I send the request I am sending the following request and recieving the following error.

 

The javascript error i'm getting is "XMLHttpRequest cannot loadhttps://www.optimizelyapis.com/experiment/v1/experiments/1361073224. Method DELETE is not allowed by Access-Control-Allow-Methods."

 

below is the exact requestScreen Shot 2014-06-25 at 1.12.12 PM.png

 

 

Level 2

JonN 07-02-14
 

Re: Deleting Optimizely Expirement via API

Hi belsmore,

 

We had a bug related to this last week but it was recently fixed. I'm able to do a DELETE successfully with my own experiment. It looks like you made this request on June 25th, so I think if you try again it will work. If you still run into trouble, please contact developers@optimizely.com.

 

Thanks,

Jon

Optimizely
belsmore 07-07-14
 

Re: Deleting Optimizely Expirement via API

Thanks @JonN ! It looks like this was related to the bug you refered to. It's working for me now.

Level 2