Hello,
could you please provide validation rules for API field “custom_domain” ?
We need to be sure that endpoint doesn’t fail because of that.
Cannot find it in your API documentation.
One thing is regex (we can guess some proper one).
Second thing is if domain is used by other account. How can we detect this in easy way?
When making a request with invalid domain, your API just returns
JSONHTTPError: Unprocessable Entity
json: { errors: { domain_aliases: [Array] } } }
{ errors: { domain_aliases: [ 'is owned by another account' ] }
so if there are hundreds of domains we even cannot know which one is wrong…
P.S.
I see that I can block out any other domain without owning it. Is this intended behaviour?