Create Custom Hostname response does not match the documentation
When sending a post request to the create endpoint it seems like the validation cert is not being returned in the response for the post hostname api. I would expect response.data.ssl.validation_records
https://developers.cloudflare.com/api/operations/custom-hostname-for-a-zone-create-custom-hostname
But the response is:
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
2 Replies
it needs more time to initialize, is that what you're confused about?
if you wait a bit and get the details of the custom hostname after, it should contain everything. CF needs to reach out to the cert authority and get those details
I see what you mean though, it does kind of imply it would be returned on the response, although in the actual response breakdown it properly shows it's not required/won't always be returned. There's a feedback button on the bottom left of the api docs.
It looks like all the custom hostnames api docs use that example full response containing all possible properties. You don't have to request ssl at all in a new custom hostname and that could be entirely null, they could still maybe improve it so clearly say those fields are optional/won't be there for the inital create
Thank you!