{
  "opencollection": "1.0.0",
  "info": {
    "name": "Baserow API spec Admin Builder domains API",
    "version": "2.2.2"
  },
  "items": [
    {
      "info": {
        "name": "Builder domains",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "get_builder_domains",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/builder/:builder_id/domains/",
            "headers": [
              {
                "name": "ClientSessionId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "builder_id",
                "value": "",
                "type": "path",
                "description": "Gets all the domains for the specified builder"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Gets all the domains of a builder"
        },
        {
          "info": {
            "name": "create_builder_domain",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/builder/:builder_id/domains/",
            "headers": [
              {
                "name": "ClientSessionId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "builder_id",
                "value": "",
                "type": "path",
                "description": "Creates a domain for the application builder related tothe provided value"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Creates a new domain for an application builder"
        },
        {
          "info": {
            "name": "order_builder_domains",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/builder/:builder_id/domains/order/",
            "headers": [
              {
                "name": "ClientSessionId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "builder_id",
                "value": "",
                "type": "path",
                "description": "The builder the domain belongs to"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Apply a new order to the domains of a builder"
        },
        {
          "info": {
            "name": "update_builder_domain",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/api/builder/domains/:domain_id/",
            "headers": [
              {
                "name": "ClientSessionId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "domain_id",
                "value": "",
                "type": "path",
                "description": "The id of the domain"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Updates an existing domain of an application builder"
        },
        {
          "info": {
            "name": "delete_builder_domain",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/api/builder/domains/:domain_id/",
            "headers": [
              {
                "name": "ClientSessionId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "domain_id",
                "value": "",
                "type": "path",
                "description": "The id of the domain"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes an existing domain of an application builder"
        },
        {
          "info": {
            "name": "publish_builder_domain",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/builder/domains/:domain_id/publish/async/",
            "headers": [
              {
                "name": "ClientSessionId",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "domain_id",
                "value": "",
                "type": "path",
                "description": "The builder application id the user wants to publish."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "This endpoint starts an asynchronous job to publish the builder. The job clones the current version of the given builder and publish it for the given domain."
        },
        {
          "info": {
            "name": "ask_public_builder_domain_exists",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/builder/domains/ask-public-domain-exists/",
            "params": [
              {
                "name": "domain",
                "value": "",
                "type": "query",
                "description": "The domain name for which"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "This endpoint can be used to check whether a domain exists for SSL certificate purposes. It's compatible with the Caddy on_demand TLS as described here: https://caddyserver.com/docs/json/apps/tls/automation/on_demand/ask/. It will respond with a 200 status code if it exists or a 404 if it doesn't exist."
        }
      ]
    }
  ],
  "bundled": true
}