Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for zones/:id/activation_check #80

Open
9mm opened this issue Sep 17, 2024 · 4 comments
Open

add support for zones/:id/activation_check #80

9mm opened this issue Sep 17, 2024 · 4 comments

Comments

@9mm
Copy link

9mm commented Sep 17, 2024

This would be nice to have:

https://developers.cloudflare.com/api/operations/put-zones-zone_id-activation_check

@ioquatix
Copy link
Member

Do you want to try submitting a PR?

@9mm
Copy link
Author

9mm commented Sep 19, 2024

TBH i dont have lots of time to dig into the code but I get this error

Cloudflare::RequestError: https://api.cloudflare.com: PUT /activation_check : No route for that URI

I just copied what was in cache purge which has identical url structure with /:zone_id/

Is there a quick answer you know off top of head with what is missing?

		def purge_cache(**options)
			if options.empty?
				options = DEFAULT_PURGE_CACHE_PARAMETERS
			end

			self.class.post(@resource.with(path: "purge_cache"), options)
		end

		def activation_check
			self.class.put(@resource.with(path: "activation_check"))
		end

https://developers.cloudflare.com/api/operations/put-zones-zone_id-activation_check

@9mm
Copy link
Author

9mm commented Sep 24, 2024

I dont know if something was cached or what, but now it appears to work in my PR

@ioquatix
Copy link
Member

No route for that URI looks like a response from Cloudflare, in other words, the request worked, but the response was an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants