keitaro-api-skill/references/paths/domains_register.yaml

43 lines
1.1 KiB
YAML

post:
tags:
- Domains
security:
- ApiKeyAuth: []
requestBody:
description: Register a domain
required: true
content:
application/json:
schema:
allOf:
- $ref: ../schemas/DomainRequest.yaml
- $ref: ../schemas/DomainCreateRequired.yaml
summary: Register the domain
description: >-
<p>Register the domain</p> <b>IMPORTANT!</b> You should have installed
integration with namecheap and, optional, with cloudflare (if you want to
add zone to cloudflare via cloudflare_proxy param)
responses:
'200':
description: Domain
content:
application/json:
schema:
allOf:
- $ref: ../schemas/Domain.yaml
- $ref: ../schemas/DomainRegister.yaml
'400':
$ref: ../responses/BadRequest.yaml
'401':
$ref: ../responses/Unauthorized.yaml
'402':
$ref: ../responses/PaymentRequired.yaml
'404':
$ref: ../responses/NotFound.yaml
'406':
$ref: ../responses/NotAcceptable.yaml
'422':
$ref: ../responses/UnprocessableEntity.yaml
'500':
$ref: ../responses/InternalError.yaml