v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Create domain

Create a new domain

post/domains

Request body

domainstring required

The domain name.

kind'front_end' | 'rest_api' | 'graphql_api' required

The kind of domain you want to add.

zen_service_idinteger

The Zen service ID which shoud generate the OpenAPI spec. This, 'openapi_spec_base64' or 'openapi_spec_url' must be provided when using kind 'rest_api' or 'graphql_api'

openapi_spec_base64string

The base64 encoded JSON OpenAPI spec you want to use for this domain. This, 'zen_service_id' or 'openapi_spec_url' must be provided when using kind 'rest_api' or 'graphql_api'

openapi_spec_urlstring

The URL to the JSON OpenAPI spec you want to use for this domain. This, 'zen_service_id' or 'openapi_spec_base64' must be provided when using kind 'rest_api' or 'graphql_api'

Example request

{
  "domain": "https://www.example.com",
  "kind": "front_end"
}

Response

The domain has been successfully created

idinteger

The ID of the newly created domain in Aikido.

Example response

{
  "id": 1
}