domains

Add a domain

Create a pending DNS-verified domain.

Args: body (CreateDomainRequest): Creation payload. db (AsyncSession): Request-scoped database session. context (ActiveContext): Resolved caller identity and scope.

Returns: SuccessResponse: The legacy create envelope carrying the new id.

Raises: ValueError: The request named the checkbox kind (self-attestation is a portal action), no organization_id was given and the caller has no default organization, or value is not a domain. Answered 400. PermissionError: Cerbos denied the create. ConflictError: The org already has a DNS proof for this value.

post/v1/domains/

Request

  • Base URL
    https://api.ethiack.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

valuestring required
organization_idinteger nullable
kind'domain_checkbox' | 'domain_dns' | 'ip_ip' | 'ip_checkbox'

Discriminator for the :class:Verification hierarchy.

Members: DOMAIN_CHECKBOX: Domain self-attestation (:class:DomainCheckboxVerification). DOMAIN_DNS: Domain DNS-record proof (:class:DomainDNSVerification). IP_IP: CIDR proof (:class:IpIpVerification) — the requester's source IP must fall within the verified CIDR (system-activated). IP_CHECKBOX: CIDR self-attestation (:class:IpCheckboxVerification).

Response

Successful Response

codeinteger required
descriptionstring required
successboolean

Changes

No recorded changes to this operation across all 1 revision of this API.