I am working with your API trying to update my template.
I have a stored file on a server, but your response is an error:
Please review the errors below, then correct them and re-cache your template.</p>
<ul><li>The URL you attempted to cache returned a status code of <strong>412</strong>.
Please confirm the URL exists, and the server is returning a successful status code, such as 200.
Here is the params sent to endpoint:
https://shopcoobie.foxycart.com/apiArray
(
[api_token] => dAtAfEed-T0keN
[api_action] => store_template_cache
[template_type] => checkout
[template_url] => http://manager.shopcoobie.com/themes/Coobie/foxycart/templates/checkout.php
)
When I manually cache with the template url, it is successful in FoxyCarts admin.
Any ideas what a 412 is?
Thanks
Rich
Is it possible to post the text to the API instead of a file path?
If not, I'll check with my server host and see what they think about this.
Thanks for the reply.
Rich
Unfortunately not at this time - it just accepts a URL for the page to cache.
From their response:
199.79.51.69 - - [27/Jul/2015:11:29:52 -0400] "GET /themes/Coobie/foxycart/templates/checkout.php HTTP/1.0" 412 1098 "http://shopcoobie.foxycart.com/api" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 0 0 "off:-:-" 207 56787
199.79.51.69 - - [27/Jul/2015:11:32:26 -0400] "GET /themes/Coobie/foxycart/templates/checkout.php HTTP/1.0" 412 1098 "http://shopcoobie.foxycart.com/api" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 0 0 "off:-:-" 207 55598
199.79.51.69 - - [27/Jul/2015:11:37:56 -0400] "GET /themes/Coobie/foxycart/templates/checkout.php HTTP/1.0" 412 1098 "http://shopcoobie.foxycart.com/api" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 0 0 "off:-:-" 207 56442
199.79.51.69 - - [27/Jul/2015:11:44:49 -0400] "GET /themes/Coobie/foxycart/templates/checkout.php HTTP/1.0" 412 1098 "http://shopcoobie.foxycart.com/api" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 0 0 "off:-:-" 207 55639
Does this make sense to you?
Rich
Thanks for the reply.
Rich
Thank you so much for your help!
Rich