{
  "openapi": "3.0.0",
  "info": {
    "title": "AtScale Design Center API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "/api/1.0"
    }
  ],
  "paths": {
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates": {
      "summary": "Aggregate List & Update",
      "x-category": "Aggregate",
      "description": "This API manages the creation and listing of new aggregates.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Aggregate"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "aggregate": [
                      {
                        "id": "67d7c22e-dceb-4188-9860-068091697f9b",
                        "name": "My Aggregate",
                        "properties": {
                          "name": "My Aggregate",
                          "notes": "this is an aggregate"
                        },
                        "attributes": {
                          "attribute-ref": [
                            {
                              "id": "82c14308-3f56-4244-499d-756e80488e64"
                            },
                            {
                              "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
                            },
                            {
                              "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
                              "ref-path": {
                                "ref": [
                                  {
                                    "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                                  }
                                ]
                              }
                            },
                            {
                              "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
                            },
                            {
                              "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
                            },
                            {
                              "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
                            }
                          ]
                        },
                        "partitions": {}
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 401,
                    "i18n_message": "request.error.undefined",
                    "message": "There was an unknown error handling your request"
                  },
                  "response": {
                    "error": "Token is expired",
                    "message": "Authentication Error: JWT Token Parse Failure",
                    "i18n_message": "request.error.undefined",
                    "code": 401,
                    "more_info": {
                      "url": [
                        "/api/1.0/org/default/project/05a01949-3af2-44ca-4c0a-fc785dfe524e/cube/737732be-f50e-47c9-7826-920bfe0a9ef5/aggregates"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "List all Aggregates for this Cube.",
        "operationId": "GET_org-orgId-project-projectId-cube-cubeId-aggregates"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Aggregate"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "aggregate": [
                      {
                        "id": "67d7c22e-dceb-4188-9860-068091697f9b",
                        "name": "My Aggregate",
                        "properties": {
                          "name": "My Aggregate",
                          "notes": "this is an aggregate"
                        },
                        "attributes": {
                          "attribute-ref": [
                            {
                              "id": "82c14308-3f56-4244-499d-756e80488e64"
                            },
                            {
                              "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
                            },
                            {
                              "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
                              "ref-path": {
                                "ref": [
                                  {
                                    "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                                  }
                                ]
                              }
                            },
                            {
                              "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
                            },
                            {
                              "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
                            },
                            {
                              "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
                            }
                          ]
                        },
                        "partitions": {}
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Create one or more new Aggregate(s) for this Cube.",
        "operationId": "POST_org-orgId-project-projectId-cube-cubeId-aggregates"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "cubeId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Cube ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates/{aggregateId}": {
      "summary": "Aggregate Read, Update & Delete",
      "x-category": "Aggregate",
      "description": "This API manages the Deletion and Read of Aggregates.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Aggregate"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "aggregate": [
                      {
                        "id": "67d7c22e-dceb-4188-9860-068091697f9b",
                        "name": "My Aggregate",
                        "properties": {
                          "name": "My Aggregate",
                          "notes": "this is an aggregate"
                        },
                        "attributes": {
                          "attribute-ref": [
                            {
                              "id": "82c14308-3f56-4244-499d-756e80488e64"
                            },
                            {
                              "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
                            },
                            {
                              "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
                              "ref-path": {
                                "ref": [
                                  {
                                    "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                                  }
                                ]
                              }
                            },
                            {
                              "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
                            },
                            {
                              "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
                            },
                            {
                              "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
                            }
                          ]
                        },
                        "partitions": {}
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Read a specific Aggregate.",
        "operationId": "GET_org-orgId-project-projectId-cube-cubeId-aggregates-aggregateId"
      },
      "put": {
        "responses": {
          "200": {
            "description": "Success. Returns the JSON representation of the updated aggregate definition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Aggregate"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "aggregate": [
                      {
                        "id": "67d7c22e-dceb-4188-9860-068091697f9b",
                        "name": "My Aggregate",
                        "properties": {
                          "name": "My Aggregate",
                          "notes": "this is an aggregate"
                        },
                        "attributes": {
                          "attribute-ref": [
                            {
                              "id": "82c14308-3f56-4244-499d-756e80488e64"
                            },
                            {
                              "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
                            },
                            {
                              "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
                              "ref-path": {
                                "ref": [
                                  {
                                    "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                                  }
                                ]
                              }
                            },
                            {
                              "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
                            },
                            {
                              "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
                            },
                            {
                              "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
                            }
                          ]
                        },
                        "partitions": {}
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Update a specific Aggregate.",
        "operationId": "PUT_org-orgId-project-projectId-cube-cubeId-aggregates-aggregateId"
      },
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": true
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Delete a specific Aggregate.",
        "operationId": "DELETE_org-orgId-project-projectId-cube-cubeId-aggregates-aggregateId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "cubeId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Cube ID (UUID) for which you are querying."
        },
        {
          "name": "aggregateId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Aggregate ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates/export": {
      "summary": "Export",
      "x-category": "Aggregate",
      "description": "This API exports System-Defined aggregate definitions that may then be imported using the Imported to another system that has the same CubeID.  Note that User-Defined Aggregates (UDA's) are not included in the export.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportedSystemAggregateDefinition"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "atScaleExportVersion": "2021.2.0",
                    "exportSummary": {
                      "connectionIds": {
                        "count": 1,
                        "values": [
                          "con1"
                        ]
                      }
                    },
                    "exportTimestamp": "2021-05-04T22:22:32.275Z[UTC]",
                    "exportOrgId": "default",
                    "exportProjectId": "f7aec09a-7d92-4455-96fe-ccae1b504b28",
                    "exportCubeId": "737732be-f50e-47c9-7826-920bfe0a9ef5",
                    "aggregates": {
                      "count": 1,
                      "values": [
                        {
                          "id": "0fd822f6-0fd5-40bd-9b44-d43927e1a3f2",
                          "user_defined_id": null,
                          "user_defined_name": null,
                          "triggering_query_id": "a0a54009-42f0-4f7c-8313-3cf804d3d4b9",
                          "organization_id": "default",
                          "environment_id": null,
                          "project_id": "f7aec09a-7d92-4455-96fe-ccae1b504b28",
                          "plan_json": "//logical plan of the aggregate (JSON)",
                          "created_at": "2021-04-21 16:13:18",
                          "latest_instance_id": "7c582a7e-23c1-460a-ab39-909370db9de1",
                          "base_type": "system_defined",
                          "sub_type": "demand_defined",
                          "hinted_dataset_id": null,
                          "active_instance_id": "7c582a7e-23c1-460a-ab39-909370db9de1",
                          "connection_id": "con1",
                          "promoted_copy_of": null,
                          "promoted": "false",
                          "incidental_data": {
                            "type": "incidental-data-set",
                            "data-set-id": "f79aea6b-f115-4c0a-4c3d-a604c7bc7b23"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request."
          },
          "401": {
            "description": "Unauthorized AtScale user."
          },
          "403": {
            "description": "User does not have permission to access the resource."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Read a specific Aggregate.",
        "operationId": "GET_org-orgId-project-projectId-cube-cubeId-aggregates-export-aggregateId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "cubeId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Cube ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates/import": {
      "summary": "Import",
      "x-category": "Aggregate",
      "description": "This API imports System-Defined aggregate definitions exported from the UI or the /aggregates/export API.  The Request Body is expected to match that of the /aggregates/export endpoint Response Body.  The identical cube, as defined by Cube ID,  must exist in the system for this call to succeed.  This API does not support importing from newer versions to older versions of AtScale.  For best results, Aggregate Definitions should be migrated between AtScale servers with identical version numbers.",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportedSystemAggregateDefinition"
                },
                "example": {
                  "atScaleExportVersion": "2021.2.0",
                  "exportOrgId": "default",
                  "exportProjectId": "f7aec09a-7d92-4455-96fe-ccae1b504b28",
                  "importOrgId": "myorg",
                  "importProjectId": "3dcba5b0-b730-4ed8-a0c0-d3cbdaf83a55",
                  "cubeId": "737732be-f50e-47c9-7826-920bfe0a9ef5",
                  "numberOfDefinitionsImported": 1,
                  "numberOfDefinitionsIgnored": 2,
                  "aggregates": {
                    "count": 3,
                    "values": [
                      {
                        "id": "0fd822f6-0fd5-40bd-9b44-d43927e1a3f2",
                        "newId": "4650a657-5d94-4ab5-a547-2e5e18b38a93",
                        "imported": true
                      },
                      {
                        "id": "15c37c52-84cf-4c20-8a91-2ef87ccffd38",
                        "imported": false,
                        "reason": "The connection ID \"con4\" is unknown in Organization \"myorg\"."
                      },
                      {
                        "id": "15c37c52-84cf-4c20-8a91-2ef87ccffd38",
                        "imported": "false",
                        "reason": "Aggregate definition already exists: a49f6834-4552-4366-87c7-6237598f15e7"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request."
          },
          "401": {
            "description": "Unauthorized AtScale user."
          },
          "403": {
            "description": "User does not have permission to access the resource."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Uploads a file containing the proprietary AtScale Aggregate Definition format for System-Defined aggregates.  Use the 'multipart/form-data' Content-Type header.  The payload follows the form-data format with the 'file' field populated with the binary-encoded file contents.  For example: { file: File_Contents_In_Binary }.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "fileName": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "example": {
                "file": "Binary-encoded-file-contents"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "cubeId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Cube ID (UUID) for which you are querying."
        },
        {
          "name": "importPartitionKeys",
          "in": "query",
          "required": false,
          "schema": {
            "type": "boolean"
          },
          "description": "Whether to import partition hints in aggregate logical plans (defaults to true if unspecified)."
        },
        {
          "name": "importDistributionKeys",
          "in": "query",
          "required": false,
          "schema": {
            "type": "boolean"
          },
          "description": "Whether to import distribution hints in aggregate logical plans (defaults to true if unspecified)."
        },
        {
          "name": "importReplication",
          "in": "query",
          "required": false,
          "schema": {
            "type": "boolean"
          },
          "description": "Whether to import replication hints in aggregate logical plans (defaults to true if unspecified)."
        },
        {
          "name": "connectionRemap",
          "in": "query",
          "required": false,
          "schema": {
            "type": "string"
          },
          "description": "originalConnId:newConnId (no remap if unspecified).  Pass multiple connection Remap variables to perform muliple remap operations."
        }
      ]
    },
    "/org/{orgId}/projects": {
      "summary": "Projects List All",
      "x-category": "Projects",
      "description": "Finds all projects (full JSON representation) contained in the Organization identified by orgId.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Project"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-projects"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/clone": {
      "summary": "Projects Clone",
      "x-category": "Projects",
      "description": "Outputs a JSON object - essentially a, clone of the specified project - with new IDs generated for all objects and references.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-project-projectId-clone"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/xml": {
      "summary": "Projects Read as XML",
      "x-category": "Projects",
      "description": "Reads the project identified by projectId in the endpoint and returns the XML representations.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-project-projectId-xml"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}": {
      "summary": "Projects",
      "x-category": "Projects",
      "description": "Manages Projects and Project Metadata.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Reads the project identified by projectId in the endpoint and returns the JSON representations.",
        "operationId": "GET_org-orgId-project-projectId"
      },
      "put": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Updates the project identified by projectId in the endpoint and returns the JSON representations. Payload is a Project represented as JSON. There are two important things to consider. First, since project's cubes are identified only by their Cube ID, you should take care to keep the existing Cube IDs unchanged. If the update removes an existing Cube ID, then that cube's aggregates will be deactivated on publish. Second, if a project contains a new Cube ID, then that cube will receive the default, run-time security settings, and also will not have any aggregates when published. Cube ID's are likely to be different in Project files exported from different AtScale installations. Please verify that the Project definition contains the expected Cube ID's before proceeding with the project update.",
        "operationId": "PUT_org-orgId-project-projectId"
      },
      "patch": {
        "responses": {
          "200": {
            "description": "Success."
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Manages Project Metadata update. Metadata supported are display name, query name, description and predictive aggregates.",
        "operationId": "PATCH_org-orgId-project-projectId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "display_name": "new name",
                "renaming_query_name": "new query name",
                "description": "new description",
                "updating_description": true,
                "prediction_def_aggs": "prediction defined aggregates"
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Deletes the project identified by projectId.",
        "operationId": "DELETE_org-orgId-project-projectId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project": {
      "summary": "Projects Create",
      "x-category": "Projects",
      "description": "Pulls the JSON or XML representation of the Project from the body of the request and attempts to marshal into the Project structure and persist it.",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-project"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "Content-Type",
          "in": "header",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/xml": {
      "summary": "Projects Convert from JSON to XML",
      "x-category": "Projects",
      "description": "Takes a JSON representation of a Project and converts it to XML.",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-xml"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/json": {
      "summary": "Projects Convert from XML to JSON",
      "x-category": "Projects",
      "description": "This API takes a JSON representation of a Project and converts it to JSON.",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-json"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/options": {
      "summary": "Project Options",
      "x-category": "Project",
      "description": "The Organization ID (UUID) for which you are querying.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "id": "abc123",
                  "can_update,omitempty": true,
                  "can_delete": true
                }
              }
            }
          },
          "400": {
            "description": "This error will occur if the project with the specified projectId does not exist."
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist"
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "operationId": "GET_org-orgId-project-projectId-options"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID for which you are querying"
        }
      ]
    },
    "/org/{orgId}/project/createEmpty": {
      "summary": "Project Create New/Empty",
      "x-category": "Project",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "428d790c-9e8a-472f-6dde-49f6fe43d9ac",
                    "name": "Project 35",
                    "annotations": {
                      "annotation": [
                        {
                          "name": "migrationVersion",
                          "value": "0.0.0.0"
                        }
                      ]
                    },
                    "properties": {
                      "caption": "Project 35",
                      "visible": true,
                      "aggressive_aggregate_promotion": false,
                      "aggregate-prediction": {
                        "speculative-aggregates": true
                      },
                      "preferred_aggregate_stores": {
                        "agg_stores_by_priority": null
                      }
                    },
                    "datasets": {},
                    "cubes": {
                      "cube": [
                        {
                          "id": "3fc04818-b3ea-468f-67dd-46883a987c80",
                          "name": "Project 35"
                        }
                      ]
                    },
                    "createdBy": "bootstrap"
                  }
                }
              }
            }
          },
          "400": {
            "description": "This error will occur if the project with the specified projectId does not exist."
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "operationId": "POST_org-orgId-project-projectId-createEmpty",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              },
              "example": {
                "name": "Project 35",
                "speculative-aggregate": false,
                "inclusive-access": false
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) where the new project should be created"
        },
        {
          "name": "name",
          "in": "query",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The name of the new project"
        },
        {
          "name": "speculative-aggregate",
          "in": "query",
          "required": true,
          "schema": {
            "type": "boolean"
          },
          "description": "Enable prediction-defined aggregates for the new project"
        },
        {
          "name": "inclusive-access",
          "in": "query",
          "required": true,
          "schema": {
            "type": "boolean"
          },
          "description": "Enable inclusive access for the new project"
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/rename": {
      "summary": "Project Rename",
      "x-category": "Project",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "21c0ee1e-8d7d-499c-475f-a8af7c24c532",
                    "name": "Project",
                    "version": 1,
                    "properties": {
                      "caption": "Renamed Project",
                      "visible": true,
                      "aggregate-prediction": {
                        "speculative-aggregates": false
                      }
                    },
                    "datasets": {},
                    "cubes": {
                      "cube": [
                        {
                          "id": "a6919016-ea66-408f-4c5e-56270ffd6643",
                          "name": "Cube",
                          "properties": {
                            "caption": "Cube",
                            "visible": false
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "This error will occur if the org with the specified OrganizationID does not exist."
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist"
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "operationId": "POST_org-orgId-project-projectId-rename-newName",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "newName": "Renamed Project"
              }
            }
          }
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "ID (UUID) of the project you want to rename"
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/{name}/verify": {
      "summary": "Check if project exists by name",
      "x-category": "Project",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "400": {
            "description": "This error will occur if the org with the specified OrganizationID does not exist."
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist"
          },
          "409": {
            "description": "This project already exists"
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "operationId": "POST_org-orgId-project-projectId-name-verify"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "name",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/orgs": {
      "summary": "Organizations List All",
      "x-category": "Organizations",
      "description": "This REST API finds all organizations in the instance. This call is limited to a user with the SUPERUSER priviledge since it crosses Organizational boundaries.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Organization"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_orgs"
      }
    },
    "/org/{orgId}/project/{projectId}/dimension": {
      "summary": "Dimensions Create",
      "x-category": "Dimensions",
      "description": "Create a dimension. The UUID for the dimension element will be automatically assigned if you do not generate one. UUIDs for elements inside the dimension element must be specified (hierarchy, level, attribute-ref).",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-project-projectId-dimension",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "description": "",
                "name": "Postal code dimension",
                "caption": "Postal code dimension",
                "datasetId": "97ebf1ef-9cb3-48a6-6e66-80f70c4d43c7",
                "levelName": "Postal code dimension",
                "keyColumns": [
                  "postalcode"
                ],
                "valueColumn": "country",
                "type": "Other",
                "unique": false,
                "visible": true,
                "cubeId": "001529c1-cb00-4900-7699-116591eee845"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/dimension/{dimensionId}": {
      "summary": "Dimensions Update",
      "x-category": "Dimensions",
      "description": "In-place update a dimension by passing in a new JSON representation of the Dimension.",
      "put": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "PUT_org-orgId-project-projectId-dimension-dimensionId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "dimensionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Dimension ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/dimension/{dimensionId}/all": {
      "summary": "Dimensions Read from both Global and All Cubes",
      "x-category": "Dimensions",
      "description": "This API call searches across the entire global space and across all defined cubes to find the Dimension.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-project-projectId-dimension-dimensionId-all"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "dimensionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Dimension ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/dimension/{dimensionId}/global": {
      "summary": "Dimensions Read from Global Scope",
      "x-category": "Dimensions",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-project-projectId-dimension-dimensionId-global"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "dimensionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Dimension ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/dimension/{dimensionId}/cube/{cubeId}": {
      "summary": "Dimensions Read from Cube Scope",
      "x-category": "Dimensions",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-project-projectId-dimension-dimensionId-cube-cubeId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        },
        {
          "name": "dimensionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Dimension ID (UUID) for which you are querying."
        },
        {
          "name": "cubeId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Cube ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/publish": {
      "summary": "Projects Publish",
      "x-category": "Projects",
      "description": "Publishing a project publishes all of the cubes contained in the project. You cannot publish cubes individually.",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Envelope"
                }
              }
            }
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-project-projectId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "version_tag": "v1.0",
                "modifications": {
                  "display_name": "New Publish Project Caption",
                  "query_name": "new_query_name",
                  "project_id": "59e54b54-7101-4380-5397-6bd771d331f8"
                }
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/properties/features": {
      "summary": "Options",
      "x-category": "Options",
      "description": "Enable or disable Options (Feature Flags)",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "This API enables or disables configuration Options.",
        "summary": "Configure Options",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "org_id": "default",
                "name": "name.of.feature.flag",
                "value": "true"
              },
              "schema": {
                "$ref": "#/components/schemas/Webhook"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/webhooks": {
      "summary": "Webhooks List",
      "x-category": "Webhooks",
      "description": "List All the Organization level Webhooks that are defined.",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "This API lists webhooks. With no parameters, it gets the org specific webhooks. Caller can append projectId or notificationType to search more specifically.",
        "summary": "List All Webhooks",
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "description": "The Project Id to fetch webhooks for",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "notificationType",
            "in": "query",
            "description": "The Notification Type",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "This API creates a webhook. The body of the request is a JSON serialized form for the webhook.",
        "summary": "Create Webhook",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "org_id": "default",
                "notification_type": "SNAPSHOT",
                "url": "http://www.yahoo.com",
                "project_id": "ab7f99ac-cb3a-428b-6092-5cd1ba28abe7"
              },
              "schema": {
                "$ref": "#/components/schemas/Webhook"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/webhooks/{hookId}": {
      "summary": "Webhooks",
      "x-category": "Webhooks",
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Deletes the webhook identified by hookId in org identified by orgId.",
        "summary": "Delete Webhook"
      },
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "i18n_message": "response.ok",
                    "message": "ok"
                  },
                  "response": {
                    "id": "abc123"
                  },
                  "time_to_process": "1.1 seconds"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-webhooks-hookId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "hookId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Webhook ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/permissions/project": {
      "summary": "Project Permission Properties",
      "x-category": "Project",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "designtime_permissions": [
                      {
                        "name": "project.read",
                        "id": "project.read"
                      },
                      {
                        "name": "project.update",
                        "id": "project.update"
                      },
                      {
                        "name": "project.delete",
                        "id": "project.delete"
                      },
                      {
                        "name": "project.publish",
                        "id": "project.publish"
                      }
                    ]
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-permissions-project"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/permissions/project/{projectId}": {
      "summary": "Project Permissions",
      "x-category": "Project",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "designtime_permissions": {
                      "designtime_permission_matrix": {
                        "568a4ab9-f7a4-4ac2-5162-9a496453d161": [
                          "project.read"
                        ],
                        "admin1234": [
                          "project.read",
                          "project.update",
                          "project.delete",
                          "project.publish"
                        ],
                        "f1edfca6-7f8a-4a4d-7952-4660580c67a2": [
                          "project.read"
                        ]
                      },
                      "permissions": [
                        {
                          "name": "project.read",
                          "id": "project.read"
                        },
                        {
                          "name": "project.update",
                          "id": "project.update"
                        },
                        {
                          "name": "project.delete",
                          "id": "project.delete"
                        },
                        {
                          "name": "project.publish",
                          "id": "project.publish"
                        }
                      ],
                      "users": [
                        {
                          "user_id": "568a4ab9-f7a4-4ac2-5162-9a496453d161",
                          "auth_username": "abc",
                          "name": "abc",
                          "super_user": false,
                          "api_super_user": false,
                          "email": "abc@atscale.com"
                        }
                      ]
                    },
                    "object_properties": {
                      "exclusive_access": true,
                      "author_user_id": "abc",
                      "object_type": "project",
                      "object_id": "58e262f8-3ec6-4835-4890-60e8ab51e76b"
                    },
                    "admins": [
                      "admin1234"
                    ]
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-permissions-project-projectId"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": "Succesfully updated the permissions",
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-permissions-project-projectId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "designtime_permission_matrix": {
                  "admin1234": [
                    "project.read",
                    "project.update",
                    "project.delete",
                    "project.publish"
                  ],
                  "b9f64bf0-a599-49fb-7ddd-0dc0a73f86c0": [
                    "project.read",
                    "project.update",
                    "project.delete",
                    "project.publish"
                  ]
                },
                "exclusive_access_run_time": false,
                "exclusive_access_design_time": false
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID for which you are querying"
        }
      ]
    },
    "/org/{orgId}/permissions/project/{projectId}/cube": {
      "summary": "Cube Permission Properties",
      "x-category": "Cube",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "designtime_permissions": [
                      {
                        "name": "cube.read",
                        "id": "cube.read"
                      },
                      {
                        "name": "cube.update",
                        "id": "cube.update"
                      },
                      {
                        "name": "cube.delete",
                        "id": "cube.delete"
                      }
                    ],
                    "runtime_permissions": [
                      {
                        "name": "cube.query",
                        "id": "cube.query"
                      },
                      {
                        "name": "cube.ctas",
                        "id": "cube.ctas"
                      }
                    ]
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          }
        },
        "operationId": "GET_org-orgId-permissions-project-projectId-cube"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID for which you are querying"
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/snapshots": {
      "summary": "Project Snapshots Read & Create",
      "x-category": "Project",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "snapshot_id": "b4a1da7a-8bbd-4f01-4ac9-7be629d50258",
                      "name": "B",
                      "project_id": "3d50753c-be0c-4528-6a4e-9c62f58394ca",
                      "create_date": "2019-05-03T18:42:05.281857Z",
                      "user_id": "admin1234",
                      "Project": {}
                    },
                    {
                      "snapshot_id": "74dcd3f8-01df-4057-7126-08c2fa71257c",
                      "name": "A",
                      "project_id": "3d50753c-be0c-4528-6a4e-9c62f58394ca",
                      "create_date": "2019-05-03T18:36:32.500596Z",
                      "user_id": "admin1234",
                      "Project": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-project-projectId-versions"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "snapshot_id": "ac0adc31-4fbb-4abd-7976-280fb90e0555",
                    "name": "emptyCube",
                    "project_id": "59e54b54-7101-4380-5397-6bd771d331f8",
                    "create_date": "2018-03-29T23:49:04.97762Z",
                    "user_id": "admin1234",
                    "Project": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-project-projectId-snapshot",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "tag": "emptyCube"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID for which you are querying"
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/snapshots/{snapshotId}": {
      "summary": "Project Snapshots Delete",
      "x-category": "Project",
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "Successfully deleted project snapshot: [ac0adc31-4fbb-4abd-7976-280fb90e0555] for Project Id: [3d50753c-be0c-4528-6a4e-9c62f58394ca]"
                }
              }
            }
          },
          "400": {
            "description": "This error will occur if the project snapshot with the specified projectVersionId does not exist."
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist"
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "DELETE_org-orgId-project-projectId-versions-projectVersionId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID for which you are querying"
        },
        {
          "name": "snapshotId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project Snapshot ID for which you are querying"
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/snapshots/{snapshotId}/restore": {
      "summary": "Project Snapshots Restore",
      "x-category": "Project",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "Project [3d50753c-be0c-4528-6a4e-9c62f58394ca] succesfully restored from snapshot: [74dcd3f8-01df-4057-7126-08c2fa71257c]"
                }
              }
            }
          },
          "400": {
            "description": "This error will occur if the project snapshot with the specified projectVersionId does not exist."
          },
          "403": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the project does not exist"
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "PUT_org-orgId-project-projectId-versions-projectVersionId-restore"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID for which you are querying"
        },
        {
          "name": "snapshotId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project Snapshot ID you are restoring"
        }
      ]
    },
    "/org/{orgId}/permissions/project/{projectId}/cube/{cubeId}": {
      "summary": "Cube Permissions",
      "x-category": "Cube",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "designtime_permissions": {
                      "designtime_permission_matrix": {
                        "568a4ab9-f7a4-4ac2-5162-9a496453d161": [
                          "cube.read",
                          "cube.update",
                          "cube.delete"
                        ],
                        "admin1234": [
                          "cube.read",
                          "cube.update",
                          "cube.delete"
                        ],
                        "f1edfca6-7f8a-4a4d-7952-4660580c67a2": [
                          "cube.read",
                          "cube.update",
                          "cube.delete"
                        ]
                      },
                      "permissions": [
                        {
                          "name": "cube.read",
                          "id": "cube.read"
                        },
                        {
                          "name": "cube.update",
                          "id": "cube.update"
                        },
                        {
                          "name": "cube.delete",
                          "id": "cube.delete"
                        }
                      ],
                      "users": [
                        {
                          "user_id": "admin1234",
                          "auth_username": "admin",
                          "name": "admin user",
                          "super_user": true,
                          "api_super_user": true,
                          "email": "admin@atscale.com"
                        },
                        {
                          "user_id": "568a4ab9-f7a4-4ac2-5162-9a496453d161",
                          "auth_username": "gaurav1",
                          "name": "gaurav",
                          "super_user": false,
                          "api_super_user": false,
                          "email": "gaurav1@gaurav.com"
                        },
                        {
                          "user_id": "f1edfca6-7f8a-4a4d-7952-4660580c67a2",
                          "auth_username": "gauravshetti4",
                          "name": "gaurav",
                          "super_user": false,
                          "api_super_user": false,
                          "email": "gauravshetti4@gmail.com"
                        }
                      ]
                    },
                    "object_properties": {
                      "exclusive_access": false,
                      "author_user_id": "admin1234",
                      "object_type": "cube",
                      "object_id": "default.58e262f8-3ec6-4835-4890-60e8ab51e76b.3eac167c-6dfd-4487-5876-38a039618e82"
                    },
                    "runtime_permissions": {
                      "permissions": [
                        {
                          "name": "cube.query",
                          "id": "cube.query"
                        },
                        {
                          "name": "cube.ctas",
                          "id": "cube.ctas"
                        }
                      ],
                      "user_permission_matrix": {
                        "568a4ab9-f7a4-4ac2-5162-9a496453d161": [
                          "cube.query",
                          "cube.ctas"
                        ],
                        "admin1234": [
                          "cube.query",
                          "cube.ctas"
                        ],
                        "f1edfca6-7f8a-4a4d-7952-4660580c67a2": [
                          "cube.query",
                          "cube.ctas"
                        ]
                      },
                      "users": [
                        {
                          "user_id": "admin1234",
                          "auth_username": "admin",
                          "name": "admin user",
                          "super_user": true,
                          "api_super_user": true,
                          "email": "admin@atscale.com"
                        },
                        {
                          "user_id": "568a4ab9-f7a4-4ac2-5162-9a496453d161",
                          "auth_username": "gaurav1",
                          "name": "gaurav",
                          "super_user": false,
                          "api_super_user": false,
                          "email": "gaurav1@gaurav.com"
                        },
                        {
                          "user_id": "f1edfca6-7f8a-4a4d-7952-4660580c67a2",
                          "auth_username": "gauravshetti4",
                          "name": "gaurav",
                          "super_user": false,
                          "api_super_user": false,
                          "email": "gauravshetti4@gmail.com"
                        }
                      ]
                    },
                    "admins": [
                      "admin1234"
                    ]
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-permissions-project-projectId-cube-cubeId"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": "Succesfully updated the permissions",
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-permissions-project-projectId-cube-cubeId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "designtime_permission_matrix": {
                  "b9f64bf0-a599-49fb-7ddd-0dc0a73f86c0": [
                    "cube.read",
                    "cube.update",
                    "cube.delete"
                  ]
                },
                "runtime_user_permission_matrix": {
                  "42ee6ae8-8884-4fd3-7275-a950cda0de71": [
                    "cube.query",
                    "cube.ctas"
                  ],
                  "b9f64bf0-a599-49fb-7ddd-0dc0a73f86c0": [
                    "cube.query",
                    "cube.ctas"
                  ],
                  "c3a4d0a1-b78f-47c9-5612-c7d085c098ac": [
                    "cube.ctas"
                  ]
                },
                "exclusive_access_run_time": false,
                "exclusive_access_design_time": false
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "projectId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Project ID for which you are querying"
        },
        {
          "name": "cubeId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Cube ID for which you are querying"
        }
      ]
    },
    "/org/{orgId}/engine": {
      "summary": "Engine List All",
      "x-category": "Engine",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "engine_id": "94d12cde-7e75-4d45-53b8-1ec1d5b92982",
                      "org_id": "default",
                      "name": "My Engine",
                      "protocol": "http",
                      "host": "local.infra.atscale.com",
                      "port": 10502,
                      "properties": "{}",
                      "default_engine": true
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "GET_org-orgId-engine"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Engine"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "engine_id": "94d12cde-7e75-4d45-53b8-1ec1d5b92982",
                      "org_id": "default",
                      "name": "My Engine",
                      "protocol": "http",
                      "host": "local.infra.atscale.com",
                      "port": 10502,
                      "properties": "{}",
                      "default_engine": true
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "operationId": "POST_org-orgId-engine",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "org_id": "default",
                "name": "My Engine",
                "protocol": "http",
                "host": "local.infra.atscale.com",
                "port": 10502,
                "properties": "{}",
                "default_engine": true
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/engine/{engineId}": {
      "summary": "Engine Update & Delete",
      "x-category": "Engine",
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "engine_id": "abc123",
                    "org_id": "default",
                    "name": "My Engine 2",
                    "protocol": "http",
                    "host": "local.infra.atscale.com",
                    "port": 10502,
                    "properties": "{}",
                    "default_engine": true
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Delete the Engine Definition",
        "operationId": "DELETE_org-orgId-engine-engineId"
      },
      "put": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Engine"
                },
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "engine_id": "94d12cde-7e75-4d45-53b8-1ec1d5b92982",
                      "org_id": "default",
                      "name": "My Engine",
                      "protocol": "http",
                      "host": "local.infra.atscale.com",
                      "port": 10502,
                      "properties": "{}",
                      "default_engine": false
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Update the Engine Definition",
        "operationId": "PUT_org-orgId-engine-engineId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "engine_id": "94d12cde-7e75-4d45-53b8-1ec1d5b92982",
                "org_id": "default",
                "name": "My Engine",
                "protocol": "http",
                "host": "local.infra.atscale.com",
                "port": 10502,
                "properties": "{}",
                "default_engine": false
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "engineId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Engine ID (UUID) for which you are querying."
        }
      ]
    },
    "/sessiontoken": {
      "summary": "User Session Token",
      "x-category": "User",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "user_id": "admin1234",
                    "generated_at": "2018-06-22T11:42:20.996111502-07:00"
                  }
                }
              }
            }
          }
        },
        "description": "Lists the user that generated the API token, and the time when this token was generated",
        "operationId": "GET_sessiontoken"
      }
    },
    "/org/{orgId}/users": {
      "summary": "User Create And List",
      "x-category": "User",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": [
                    {
                      "user_id": "568a4ab9-f7a4-4ac2-5162-9a496453d161",
                      "auth_username": "abc",
                      "name": "abc",
                      "super_user": true,
                      "api_super_user": true,
                      "email": "abc@atscale.com"
                    },
                    {
                      "user_id": "b609f4e2-10fa-4dde-425f-114ae7e182e5",
                      "auth_username": "xyz",
                      "name": "xyz",
                      "super_user": false,
                      "api_super_user": false,
                      "email": "xyz@atscale.com"
                    }
                  ],
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Lists all users for the Organization",
        "operationId": "GET_org-orgId-users"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "User abcname successfully created"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new user",
        "operationId": "POST_org-orgId-users",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "username": "abcid",
                "confirm_password": "abc",
                "password": "abc",
                "email": "abc@atscale.com",
                "name": "abcname",
                "roles": [
                  "designcenter_user"
                ],
                "picture": "BINHEX ENCODED GIF/PNG/JPG"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/users/{userId}": {
      "summary": "User Read, Update & Delete",
      "x-category": "User",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "user": {
                      "user_id": "83cc05ae-7ebd-4c69-5f37-b39e718a7d80",
                      "name": "testuser_dc",
                      "email": "testuser@atscale.com",
                      "auth_username": "testuser_dc",
                      "super_user": false,
                      "api_super_user": false,
                      "roles": null
                    },
                    "organization": {
                      "id": "default",
                      "name": "default"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist, or the user identified by userId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get user details for the user",
        "operationId": "GET_org-orgId-users-userId"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "User abc user successfully updated"
                }
              }
            }
          }
        },
        "description": "Edit the user details for the user",
        "operationId": "POST_org-orgId-users-userId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "email": "abc@atscale.com",
                "name": "abc user",
                "roles": [
                  "designcenter_user"
                ],
                "picture": "BINHEX ENCODED GIF/PNG/JPG",
                "super_user": true,
                "api_super_user": false
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "User abc user deleted succesfully"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist, or the user identified by userId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Deletes the user",
        "operationId": "DELETE_org-orgId-users-userId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "userId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The User ID of the user for which you are querying."
        }
      ]
    },
    "/org/{orgId}/username/{username}": {
      "summary": "User Get User by Username",
      "x-category": "User",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "user": {
                      "user_id": "83cc05ae-7ebd-4c69-5f37-b39e718a7d80",
                      "name": "testuser_dc",
                      "email": "testuser@atscale.com",
                      "auth_username": "testuser_dc",
                      "super_user": false,
                      "api_super_user": false,
                      "roles": null
                    },
                    "organization": {
                      "id": "default",
                      "name": "default"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist, or the user identified by username does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Lists the user details for the user",
        "operationId": "GET_org-orgId-username-username"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "username",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The username of the user for which you are querying."
        }
      ]
    },
    "/org/{orgId}/users/{userId}/picture": {
      "summary": "User Profile Delete Picture",
      "x-category": "User",
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "raw_json": "{\"lastOrg\":\"default\",\"logincount\":1}"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist, or the user identified by userId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Removes the Profile Picture",
        "operationId": "DELETE_org-orgId-users-userId-picture"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "userId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The userId of the user for which you are querying."
        }
      ]
    },
    "/org/{orgId}/roles": {
      "summary": "Role List & Create",
      "x-category": "Role",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "b77d6615-fee8-4457-697f-bb2e1f79fc51",
                    "title": "Design Center Role",
                    "permissions": [
                      {
                        "id": "dc_user",
                        "name": "designcenter.user"
                      },
                      {
                        "id": "queries_view",
                        "name": "queries.view"
                      },
                      {
                        "id": "aggregates_view",
                        "name": "aggregates.view"
                      },
                      {
                        "id": "object_create",
                        "name": "object.create"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "description": "Create a new Role",
        "operationId": "POST_org-orgId-roles",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "title": "Design Center Role",
                "permissions": [
                  {
                    "id": "dc_user",
                    "name": "designcenter.user"
                  },
                  {
                    "id": "queries_view",
                    "name": "queries.view"
                  },
                  {
                    "id": "aggregates_view",
                    "name": "aggregates.view"
                  },
                  {
                    "id": "object_create",
                    "name": "object.create"
                  }
                ]
              }
            }
          },
          "required": true
        }
      },
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "roles": [
                      {
                        "id": "designcenter_user",
                        "title": "Design Center User",
                        "permissions": [
                          {
                            "id": "dc_user",
                            "name": "designcenter.user"
                          },
                          {
                            "id": "queries_view",
                            "name": "queries.view"
                          },
                          {
                            "id": "aggregates_view",
                            "name": "aggregates.view"
                          },
                          {
                            "id": "object_create",
                            "name": "object.create"
                          }
                        ]
                      },
                      {
                        "id": "org_admin",
                        "title": "Organization Admin",
                        "permissions": [
                          {
                            "id": "dc_user",
                            "name": "designcenter.user"
                          },
                          {
                            "id": "org_admin",
                            "name": "organization.admin"
                          },
                          {
                            "id": "queries_view",
                            "name": "queries.view"
                          },
                          {
                            "id": "aggregates_view",
                            "name": "aggregates.view"
                          },
                          {
                            "id": "queries_manage",
                            "name": "queries.manage"
                          },
                          {
                            "id": "aggregates_manage",
                            "name": "aggregates.manage"
                          },
                          {
                            "id": "runtime.user.settings",
                            "name": "runtime.user.settings"
                          },
                          {
                            "id": "datawarehouses_admin",
                            "name": "datawarehouses.admin"
                          },
                          {
                            "id": "object_create",
                            "name": "object.create"
                          },
                          {
                            "id": "view_support_logs",
                            "name": "view.support.logs"
                          }
                        ]
                      },
                      {
                        "id": "query_user",
                        "title": "Runtime Query User",
                        "permissions": null
                      },
                      {
                        "id": "65696585-8623-432b-541f-780be31468d8",
                        "title": "food",
                        "permissions": null
                      }
                    ],
                    "permissions": [
                      {
                        "id": "dc_user",
                        "name": "designcenter.user"
                      },
                      {
                        "id": "org_admin",
                        "name": "organization.admin"
                      },
                      {
                        "id": "runtime.user.settings",
                        "name": "runtime.user.settings"
                      },
                      {
                        "id": "aggregates_view",
                        "name": "aggregates.view"
                      },
                      {
                        "id": "aggregates_manage",
                        "name": "aggregates.manage"
                      },
                      {
                        "id": "queries_view",
                        "name": "queries.view"
                      },
                      {
                        "id": "queries_manage",
                        "name": "queries.manage"
                      },
                      {
                        "id": "datawarehouses_admin",
                        "name": "datawarehouses.admin"
                      },
                      {
                        "id": "object_create",
                        "name": "object.create"
                      },
                      {
                        "id": "view_support_logs",
                        "name": "view.support.logs"
                      },
                      {
                        "id": "impersonate_user",
                        "name": "impersonate.user"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Lists the roles for the organization",
        "operationId": "GET_org-orgId-roles"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/roles/{roleId}": {
      "summary": "Role Update & Delete",
      "x-category": "Role",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "b77d6615-fee8-4457-697f-bb2e1f79fc51",
                    "title": "Design Center Role NEW NAME",
                    "permissions": [
                      {
                        "id": "dc_user",
                        "name": "designcenter.user"
                      },
                      {
                        "id": "queries_view",
                        "name": "queries.view"
                      },
                      {
                        "id": "aggregates_view",
                        "name": "aggregates.view"
                      },
                      {
                        "id": "object_create",
                        "name": "object.create"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "description": "Update an existing Role",
        "operationId": "POST_org-orgId-roles-roleId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "title": "Design Center Role NEW NAME",
                "permissions": [
                  {
                    "id": "dc_user",
                    "name": "designcenter.user"
                  },
                  {
                    "id": "queries_view",
                    "name": "queries.view"
                  },
                  {
                    "id": "aggregates_view",
                    "name": "aggregates.view"
                  },
                  {
                    "id": "object_create",
                    "name": "object.create"
                  }
                ]
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "b77d6615-fee8-4457-697f-bb2e1f79fc51",
                    "title": "Design Center Role NEW NAME",
                    "permissions": [
                      {
                        "id": "dc_user",
                        "name": "designcenter.user"
                      },
                      {
                        "id": "queries_view",
                        "name": "queries.view"
                      },
                      {
                        "id": "aggregates_view",
                        "name": "aggregates.view"
                      },
                      {
                        "id": "object_create",
                        "name": "object.create"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "description": "Delete an existing Role",
        "operationId": "DELETE_org-orgId-roles-roleId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "roleId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The role ID (UUID) for which you are querying."
        }
      ]
    },
    "/org": {
      "summary": "Organization List & Create",
      "x-category": "Organizations",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "id": "default",
                      "name": "default",
                      "NumberOfUsers": 1
                    },
                    {
                      "id": "3882c0b2-b285-4cf1-7308-91048da5b4eb",
                      "name": "Other Organization",
                      "NumberOfUsers": 0
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "List all Organizations this user has access to. SuperUser has access to all, but still requires API Superuser to execute.",
        "operationId": "GET_org"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "fdddd657-7ae7-45fe-49d6-d3ae1ea3ec65",
                    "name": "new organization"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new Organization",
        "operationId": "POST_org",
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "Name for the new organization",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "port",
            "in": "query",
            "required": true,
            "description": "Port for the new organization",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "currentOrgId",
            "in": "query",
            "required": true,
            "description": "Organization to which the user making the request belongs (for example, default)",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "parameters": []
    },
    "/org/{orgId}": {
      "summary": "Organization Update & Delete",
      "x-category": "Organizations",
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "3882c0b2-b285-4cf1-7308-91048da5b4eb",
                    "name": "Organization"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Delete Organization identified by orgID UUID.",
        "operationId": "DELETE_org-orgId"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "fdddd657-7ae7-45fe-49d6-d3ae1ea3ec65",
                    "name": "New Name"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Update an existing Organization",
        "operationId": "POST_org-orgId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "New Name"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/groups": {
      "summary": "Group List & Create",
      "x-category": "Group",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "ID": "306a42c9-a7f3-48c3-743c-10015e29a672",
                      "OrgID": "default",
                      "Name": "My Group",
                      "NumberOfUsers": 0
                    },
                    {
                      "ID": "106b52fb-43e3-4ffb-491a-bb6497300c54",
                      "OrgID": "default",
                      "Name": "My Other Group",
                      "NumberOfUsers": 0
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Gets all Groups in the Organization identified by orgID UUID.",
        "operationId": "GET_org-orgId-groups"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "ID": "2f81a670-6c9b-4af4-71fd-7a79adda0da2",
                    "OrgID": "default",
                    "Name": "My Third Group"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new Group in the Organization",
        "operationId": "POST_org-orgId-groups",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "My Third Group"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/groups/{groupId}": {
      "summary": "Group Update & Delete",
      "x-category": "Group",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "ID": "2f81a670-6c9b-4af4-71fd-7a79adda0da2",
                    "OrgID": "default",
                    "Name": "My New Group Name"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Update a Group identified by groupId.",
        "operationId": "POST_org-orgId-groups-groupId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "My New Group Name"
              }
            }
          },
          "required": true
        }
      },
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "ID": "2f81a670-6c9b-4af4-71fd-7a79adda0da2",
                    "OrgID": "default",
                    "Name": "My New Group Name"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Deletes the Group identified by groupId.",
        "operationId": "DELETE_org-orgId-groups-groupId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "groupId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Group ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/groups/{groupId}/users": {
      "summary": "Group User Management",
      "x-category": "Group",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "users": [
                      {
                        "user_id": "e381667f-8049-46f6-4916-e5b8a93ffe87",
                        "name": "Kristi Long",
                        "email": "kristi@atscale.com",
                        "auth_username": "kristi@atscale.com",
                        "super_user": true,
                        "api_super_user": false,
                        "session_password": ""
                      },
                      {
                        "user_id": "27354c24-f5b8-4fbb-6e82-58a8b67b12c5",
                        "name": "Mike Aldrich",
                        "email": "mike@atscale.com",
                        "auth_username": "mike@atscale.com",
                        "super_user": false,
                        "api_super_user": false,
                        "session_password": ""
                      },
                      {
                        "user_id": "49d46e42-ced3-4fe1-41da-62a486791416",
                        "name": "Rafael Lopez",
                        "email": "rafael@atscale.com",
                        "auth_username": "rafael@atscale.com",
                        "super_user": true,
                        "api_super_user": false,
                        "session_password": ""
                      },
                      {
                        "user_id": "c8aec429-0218-45af-5704-413406f43232",
                        "name": "Shanti Chand",
                        "email": "shanti@atscale.com",
                        "auth_username": "shanti@atscale.com",
                        "super_user": true,
                        "api_super_user": false,
                        "session_password": ""
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get the list of users that exist in this group",
        "operationId": "GET_org-orgId-groups-groupId-users"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "ID": "2f81a670-6c9b-4af4-71fd-7a79adda0da2",
                    "OrgID": "default",
                    "Name": "My New Group Name"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Sets Users in Group to the list of UUID's.",
        "operationId": "POST_org-orgId-groups-groupId-users"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "groupId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Group ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/users/profile/{userId}": {
      "summary": "User Profile Read",
      "x-category": "User",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "raw_json": "{\"lastOrg\":\"default\",\"logincount\":1}"
                  }
                }
              }
            }
          }
        },
        "description": "Get the User Profile",
        "operationId": "GET_org-orgId-users-profile-userId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "userId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The User ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/properties/configurations": {
      "summary": "Configurations List API",
      "x-category": "Configurations",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "id": "account.host",
                      "name": "account.host",
                      "value": "local.infra.atscale.com",
                      "type": "string",
                      "role": "configuration",
                      "group": "account",
                      "configurable": true,
                      "scope": "global"
                    },
                    {
                      "id": "account.port",
                      "name": "account.port",
                      "value": "10500",
                      "type": "int",
                      "role": "configuration",
                      "group": "account",
                      "configurable": true,
                      "scope": "global"
                    },
                    {
                      "id": "modeler.host",
                      "name": "modeler.host",
                      "value": "local.infra.atscale.com",
                      "type": "string",
                      "role": "configuration",
                      "group": "design center",
                      "configurable": true,
                      "scope": "global"
                    },
                    {
                      "id": "tableau.server.readTimeout",
                      "name": "tableau.server.readTimeout",
                      "value": "60s",
                      "type": "int",
                      "role": "configuration",
                      "group": "tableau",
                      "configurable": true,
                      "scope": "global"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get the list of all Configurations at the Organization scope.",
        "operationId": "GET_org-orgId-properties-configurations"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/properties/configurations/update": {
      "summary": "Configurations Update API",
      "x-category": "Configurations",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "3h"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Set the Configuration value for an Organization scoped Configuration",
        "operationId": "POST_org-orgId-properties-configurations-update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              },
              "example": {
                "name": "session.timeout",
                "value": "3h"
              }
            }
          },
          "required": true
        }
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) where you make updates"
        },
        {
          "name": "name",
          "in": "query",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "Name of the configuration"
        },
        {
          "name": "value",
          "in": "query",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "New value of the configuration"
        }
      ]
    },
    "/org/{orgId}/properties/configurations/{globalConfigurationId}/{value}": {
      "summary": "Configurations Organization Override API",
      "x-category": "Configurations",
      "put": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "account.host",
                    "name": "account.host",
                    "value": "value",
                    "type": "string",
                    "role": "configuration",
                    "group": "account",
                    "configurable": true,
                    "scope": "local"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new Organization Scoped Configuration with the value passed in.",
        "operationId": "PUT_org-orgId-properties-configurations-globalConfigurationId-value"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        },
        {
          "name": "globalConfigurationId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Global Scope Configuration ID (non-UUID, human readable) for which you are querying."
        },
        {
          "name": "value",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Value you want to set the configuration to"
        }
      ]
    },
    "/properties/configurations": {
      "summary": "Global Configurations API",
      "x-category": "Global",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "id": "account.host",
                      "name": "account.host",
                      "value": "cheese",
                      "type": "string",
                      "role": "configuration",
                      "group": "account",
                      "configurable": true,
                      "scope": "global"
                    },
                    {
                      "id": "account.port",
                      "name": "account.port",
                      "value": "10504",
                      "type": "int",
                      "role": "configuration",
                      "group": "account",
                      "configurable": true,
                      "scope": "global"
                    },
                    {
                      "id": "tableau.server.readTimeout",
                      "name": "tableau.server.readTimeout",
                      "value": "60s",
                      "type": "int",
                      "role": "configuration",
                      "group": "tableau",
                      "configurable": true,
                      "scope": "global"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "List all global Configuration values",
        "operationId": "GET_properties-configurations"
      }
    },
    "/properties/configurations/{configurationId}/{newValue}": {
      "summary": "Global Configuration Set API",
      "x-category": "Global",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "account.host",
                    "name": "account.host",
                    "value": "newValue",
                    "type": "string",
                    "role": "configuration",
                    "group": "account",
                    "configurable": true,
                    "scope": "global"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Sets the global configuration value",
        "operationId": "POST_properties-configurations-configurationId-newValue"
      },
      "parameters": [
        {
          "name": "configurationId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Global Configuration ID (non-UUID, human readable) for which you are querying."
        },
        {
          "name": "newValue",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    },
    "/org/{orgId}/tableau": {
      "summary": "Tableau Server API",
      "x-category": "Tableau",
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": [
                    {
                      "id": "c86408f7-6f8b-401b-5e89-1d727488af15",
                      "org_id": "default",
                      "name": "Marketing Tableau Server",
                      "server_uri": "https://tableau.server.com",
                      "username": "user",
                      "password": "password",
                      "raw_site_names": "marketing,sales",
                      "default_site_name": "default",
                      "site_names": [
                        "marketing",
                        "sales"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Lists Tableau Server Configurations",
        "operationId": "GET_org-orgId-tableau"
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "org_id": "default",
                    "name": "Sales Tableau Server",
                    "server_uri": "https://tableau.server.com",
                    "username": "user",
                    "password": "password",
                    "raw_site_names": "sales, sales Operations",
                    "default_site_name": "default",
                    "site_names": [
                      "sales",
                      "sales Operations"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new Tableau Server Configurations",
        "operationId": "POST_org-orgId-tableau",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "org_id": "default",
                "name": "Sales Tableau Server",
                "server_uri": "https://tableau.server.com",
                "username": "user",
                "password": "password",
                "raw_site_names": "sales, sales Operations",
                "default_site_name": "default",
                "site_names": [
                  "sales",
                  "sales Operations"
                ]
              }
            }
          },
          "required": true
        },
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": true,
            "description": "If mode is equal to the string 'test', the server will validate the configuration and the create will not be executed.",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization Id (UUID) for which you are querying."
        }
      ]
    },
    "/org/{orgId}/tableau/{tableauServerId}": {
      "summary": "Tableau Server Update & Delete API",
      "x-category": "Tableau",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "c86408f7-6f8b-401b-5e89-1d727488af15",
                    "org_id": "default",
                    "name": "New Sales Tableau Server",
                    "server_uri": "https://tableau.server.com",
                    "username": "user",
                    "password": "password",
                    "raw_site_names": "sales, sales Operations",
                    "default_site_name": "default",
                    "site_names": [
                      "sales",
                      "sales Operations"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Updates Tableau Server Configuration",
        "operationId": "POST_org-orgId-tableau-tableauServerId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "org_id": "default",
                "name": "New Sales Tableau Server",
                "server_uri": "https://tableau.server.com",
                "username": "user",
                "password": "password",
                "raw_site_names": "sales, sales Operations",
                "default_site_name": "default",
                "site_names": [
                  "sales",
                  "sales Operations"
                ]
              }
            }
          },
          "required": true
        },
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": true,
            "description": "If mode is equal to the string 'test', the server will validate the configuration and the update will not be executed.",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "org_id": "default",
                    "name": "Sales Tableau Server",
                    "server_uri": "https://tableau.server.com",
                    "username": "user",
                    "password": "password",
                    "raw_site_names": "sales, sales Operations",
                    "default_site_name": "default",
                    "site_names": [
                      "sales",
                      "sales Operations"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Delete a Tableau Server Configuration Identified by tableauServerId",
        "operationId": "DELETE_org-orgId-tableau-tableauServerId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization Id (UUID) for which you are querying."
        },
        {
          "name": "tableauServerId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Tableau Server Id (UUID) for which you are querying."
        }
      ]
    },
    "/connection-groups/orgId/{orgId}": {
      "summary": "Connection Groups Create And List",
      "x-category": "Connection Groups",
      "x-api": "engine",
      "servers": [
        {
          "url": "/"
        }
      ],
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "message": "200 OK"
                  },
                  "responseCreated": "2018-03-30T16:56:52.140Z",
                  "response": {
                    "created": true,
                    "id": "f6499aec-0963-4cc5-b772-3e2d4bfa15a4"
                  }
                }
              }
            }
          }
        },
        "description": "Create a new Connection Group.",
        "operationId": "POST_connection-groups-orgId-orgId",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              },
              "example": {
                "platformType": "hadoop",
                "name": "Hive Warehouse 3",
                "connectionId": "con1",
                "overrideConnectionId": true,
                "aggregateSchema": "atscaleagg",
                "readOnly": false,
                "isImpersonationEnabled": false,
                "isCanaryAlwaysEnabled": false,
                "isPartialAggHitEnabled": false,
                "extraProperties": {
                  "udafMode": "engine_managed",
                  "udafSchema": "atscaleudaf",
                  "fsArtifactInstallPath": "/user/atscaler/atscale/engine",
                  "hadoopRpcProtection": "authentication",
                  "useNameNode2": "false"
                },
                "filesystemType": "hdfs",
                "filesystemUri": "hdfs://hadoop-node-01.atscale.com:8020",
                "subgroups": [
                  {
                    "name": "impala-sql",
                    "connectorType": "impala",
                    "hosts": "hadoop-node-01.atscale.com",
                    "port": 21050,
                    "extraJdbcFlags": ";auth=noSasl",
                    "isKerberosClientEnabled": false,
                    "username": "username_value",
                    "password": "password_value",
                    "queryRoles": [
                      "large_user_query_role",
                      "system_query_role"
                    ]
                  }
                ]
              }
            }
          },
          "required": true
        }
      },
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "message": "200 OK"
                  },
                  "responseCreated": "2018-03-29T21:43:45.491Z",
                  "response": {
                    "visibleQueryRoles": {
                      "large_user_query_role": true,
                      "small_user_query_role": true,
                      "system_query_role": true,
                      "canary_query_role": false
                    },
                    "results": {
                      "count": 1,
                      "values": [
                        {
                          "id": "d41b3ab5-db46-47ac-8417-3dca2579a131",
                          "name": "Hive Warehouse",
                          "organizationId": "default",
                          "connectionId": "con1",
                          "hdfsUri": "hdfs://atscale-01:8020",
                          "defaultSchema": "as_adventure",
                          "extraProperties": {},
                          "subgroups": [
                            {
                              "id": "0eec2ea7-3c33-4f3b-a5d0-d7bde1e48e3a",
                              "name": "atscale-hive-system",
                              "hosts": "atscale-01,atscale-02",
                              "port": 10510,
                              "connectorType": "hive",
                              "username": "atscale",
                              "extraJdbcFlags": "",
                              "queryRoles": [
                                "large_user_query_role",
                                "system_query_role"
                              ],
                              "extraProperties": {}
                            },
                            {
                              "id": "fd8465df-d278-431c-a01c-2b77d8d5b098",
                              "name": "atscale-hive-interactive",
                              "hosts": "atscale-01,atscale-02",
                              "port": 10510,
                              "connectorType": "hive",
                              "username": "atscale",
                              "extraJdbcFlags": "",
                              "queryRoles": [
                                "small_user_query_role"
                              ],
                              "extraProperties": {}
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "This error occurs if JSON validation fails",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "i18n_message": "JSON validation failed",
                    "message": "JSON validation failed"
                  },
                  "responseCreated": "2018-03-29T22:05:50.667Z",
                  "response": {
                    "error": "json_validation",
                    "message": "JSON validation failed",
                    "i18n_message": "JSON validation failed",
                    "code": 0,
                    "more_info": {
                      "/isDefault": [
                        "error.path.missing"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": ""
          },
          "404": {
            "description": ""
          },
          "500": {
            "description": ""
          },
          "503": {
            "description": ""
          }
        },
        "description": "List all Connection Groups for Organization.",
        "operationId": "GET_connection-groups-orgId-orgId"
      },
      "description": "This API manages Connection Groups. Connection Groups are referred to in the Design Center UI as Data Warehouses.",
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying."
        }
      ]
    },
    "/monitoring/queries/orgId/{orgId}": {
      "summary": "Query Monitoring API",
      "x-category": "Monitoring",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "message": "200 OK"
                  },
                  "responseCreated": "2019-02-01T00:58:42.005Z",
                  "response": {
                    "type": "query_api_lookup_wrapper",
                    "data": [
                      {
                        "type": "query_execution_info",
                        "query_id": "5ee15f00-8741-43f8-98e8-9f0ef2cf5306",
                        "org_id": "default",
                        "project_id": "a74120f8-37c0-44dd-416a-d24a1a5d3a2a",
                        "project_name": "Sales Insights",
                        "cube_id": "b89a2fb7-74f4-4828-706e-70f7186e10a0",
                        "cube_name": "Internet Sales Cube",
                        "received_time": "2019-01-31T23:50:59.081Z",
                        "started_planning": "2019-01-31T23:50:59.155Z",
                        "finished_planning": "2019-01-31T23:50:59.268Z",
                        "query_finished": "2019-01-31T23:51:09.834Z",
                        "subqueries": [
                          {
                            "type": "subquery_execution_info",
                            "query_id": "f126124e-175b-4a07-bd86-7dace65c74c8",
                            "query_text": "SELECT\n   as_agg_4026f721_no_t11.key_c1 key_c1,\n   as_agg_4026f721_no_t11.calculatedtax1_c2 calculatedtax1_c2,\n   as_agg_4026f721_no_t11.calculatedtax1_c3 calculatedtax1_c3,\n   as_agg_4026f721_no_t11.calculatedtax1_c4 calculatedtax1_c4,\n   as_agg_4026f721_no_t11.orderquantity1_c5 orderquantity1_c5,\n   as_agg_4026f721_no_t11.orderquantity1_c6 orderquantity1_c6,\n   as_agg_4026f721_no_t11.orderquantity1_c7 orderquantity1_c7,\n   as_agg_4026f721_no_t11.salesamount1_c8 salesamount1_c8,\n   as_agg_4026f721_no_t11.salesamount1_c9 salesamount1_c9,\n   as_agg_4026f721_no_t11.salesamount1_c10 salesamount1_c10\nFROM\n   atscaleagg.as_agg_4026f721_none as_agg_4026f721_no_t11",
                            "succeeded": true,
                            "started": "2019-01-31T23:51:04.237Z",
                            "subquery_fetch_start": "2019-01-31T23:51:09.828Z",
                            "finished": "2019-01-31T23:51:09.828Z",
                            "dialect": "Impala-2.12",
                            "used_local_cache": false,
                            "is_canary": false,
                            "extra_props": {},
                            "subquery_wait_duration": 4.969,
                            "subquery_exec_duration": 5.591,
                            "subquery_fetch_results_duration": 0,
                            "subquery_wall_duration": 10.56,
                            "subquery_wall_running_duration": 10.56
                          }
                        ],
                        "succeeded": true,
                        "aggregate_definition_ids": [
                          "717cbe19-9e61-4f0a-936d-fd08cbd998cd"
                        ],
                        "aggregate_instance_table_names": [
                          "as_agg_4026f721_none"
                        ],
                        "query_language": "none",
                        "subqueries_results_processing_duration": 10.56,
                        "query_wall_duration": 10.753,
                        "query_pre_planning_duration": 0.07400000000000001,
                        "query_planning_duration": 0.113,
                        "subqueries_wall_duration": 0.006,
                        "subqueries_wall_running_duration": 10.56,
                        "subqueries_first_wait_duration": 4.969,
                        "query_wall_running_duration": 10.753
                      }
                    ],
                    "result_set_limit": 500
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "405": {
            "description": "Method Not allowed.  Only GET requests are supported."
          },
          "408": {
            "description": "Request Timeout.  If the response takes more than 30 seconds, then the request is timed out."
          },
          "429": {
            "description": "Too Many Requests.  Returned if the client exceeds the request rate limit."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get a list of queries for the purpose of monitoring query volume and performance.  The result set size is limited to the minimum of maxInboundQueries or the global system limit.  See the Query Monitoring documentation for a detailed description of the response fields. ",
        "operationId": "GET_org-orgId-monitor-queries"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID (UUID) for which you are querying. (Required)"
        },
        {
          "name": "queryStartTimeFrom",
          "in": "query",
          "required": true,
          "description": "Return records with query start time timestamps greater or equal to this value. (Required) Example value: 2018-12-06T22:48:29.698Z ",
          "schema": {
            "type": "string",
            "format": "date-time"
          }
        },
        {
          "name": "queryStartTimeTo",
          "in": "query",
          "required": false,
          "description": "Return records with query start time timestamps less than this value.  If missing, no less-than constraint is applied to the query start time. (Optional) Example value: 2018-12-06T22:48:29.698Z",
          "schema": {
            "type": "string",
            "format": "date-time"
          }
        },
        {
          "name": "maxInboundQueries",
          "in": "query",
          "required": true,
          "description": "The response record limit (in-bound queries).  The actual number of returned records is the minimum of this value and the system max limit. (Required)",
          "schema": {
            "type": "integer"
          }
        },
        {
          "name": "includeQueryText",
          "in": "query",
          "required": false,
          "description": "If true return the query text in the API response.  If False, the query text is omitted. Default is False. (Optional)",
          "schema": {
            "type": "boolean"
          }
        }
      ]
    },
    "/org/{orgId}/project/{projectId}/cube/create": {
      "summary": "Create",
      "x-category": "Cube",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "a97bf0d8-e04a-4336-4fdc-ed1fda53f949",
                    "name": "My new cube",
                    "properties": {
                      "description": "My new cube created via API call",
                      "caption": "My new Cube",
                      "visible": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new Cube by specifying the Organization ID and Project ID where it should be added.",
        "operationId": "POST_org-orgId-project-projectId-cube-create",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "My new cube",
                "description": "My new cube created via API call",
                "inclusive-access": "true"
              }
            }
          },
          "required": true
        },
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "description": "ID of the organization where you want to create a cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "description": "ID of the project where you want to create a cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "Name for the new cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "required": true,
            "description": "Description for the new cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inclusive-access",
            "in": "query",
            "required": true,
            "description": "true / false",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "parameters": []
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/copy": {
      "summary": "Copy",
      "x-category": "Cube",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": {
                    "id": "fa7e1978-2333-4eda-5d15-c22059cb98e6",
                    "name": "My new cube - copy",
                    "properties": {
                      "description": "Copy of My new cube, to be used for testing",
                      "caption": "My new cube - copy",
                      "visible": true
                    },
                    "attributes": {},
                    "dimensions": {},
                    "actions": {
                      "properties": {
                        "include-default-drill-through": true
                      }
                    },
                    "data-sets": {
                      "data-set-ref": [
                        {
                          "uiid": "ca79f3c4-b16d-4aa6-67e6-5c12ef3117ed",
                          "id": "bd58eed7-ef4f-416f-6d06-0ee463263072",
                          "properties": {
                            "allow-aggregates": true,
                            "create-hinted-aggregate": false,
                            "aggregate-destinations": null
                          },
                          "logical": {
                            "key-ref": [
                              {
                                "id": "1f63a7d7-b86d-4965-96b3-b4d998726a73",
                                "unique": false,
                                "complete": "false",
                                "column": [
                                  "customerkey"
                                ]
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "calculated-members": {},
                    "aggregates": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Copy an existing Cube by specifying its ID, and the corresponding Organization ID and Project ID.",
        "operationId": "POST_org-orgId-project-projectId-cube-cubeID-copy",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "My new cube - copy",
                "description": "Copy of My new cube, to be used for testing",
                "inclusive-access": "true",
                "copy-security": false
              }
            }
          },
          "required": true
        },
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "description": "The Organization ID of the cube you want to copy",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "description": "The Project ID of the cube you want to copy",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "description": "ID of the cube you want to copy",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "Name for the copied cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "required": true,
            "description": "Description for the copied cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inclusive-access",
            "in": "query",
            "required": true,
            "description": "true / false",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "copy-security",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            },
            "description": "true / false"
          }
        ]
      },
      "parameters": []
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}": {
      "summary": "Update & Delete",
      "x-category": "Cube",
      "description": "To update or delete a cube, you need to perform these calls with a user that has sufficient permissions on organization, project, and cube level. For details, see the main AtScale documentation: Managing AtScale > Managing User Access and Security > Granting Design-Time and Runtime Permissions on Cubes to Individual Users.",
      "patch": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "a97bf0d8-e04a-4336-4fdc-ed1fda53f949"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Change the name and description an existing Cube by specifying its ID, and the corresponding Organization ID and Project ID.",
        "operationId": "PATCH_org-orgId-project-projectId-cube-cubeID",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "New name for my Cube",
                "description": "New description for my Cube"
              }
            }
          },
          "required": true
        },
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "description": "The Organization ID for which you want to update a cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "description": "The Project ID for which you want to update a cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "description": "ID of the cube you want to update",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "description": "New name of the specified cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "required": true,
            "description": "New description of the specified cube",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  },
                  "response": "fa7e1978-2333-4eda-5d15-c22059cb98e6"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Remove an existing Cube by specifying its ID, and the corresponding Organization ID and Project ID.",
        "operationId": "DELETE_org-orgId-project-projectId-cube-cubeID",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "description": "The Organization ID for which you want to remove a cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "description": "The Project ID for which you want to remove a cube",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "description": "ID of the cube you want to remove",
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "parameters": []
    },
    "/aggregates/maintenance/orgId/{orgId}/run-immediately": {
      "summary": "Run aggregate maintenance immediately",
      "x-category": "Aggregate Maintenance",
      "description": "Run immediately an aggregate maintenance job.",
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Aggregate"
                },
                "example": {
                  "status": {
                    "code": 200,
                    "message": "Maintenance successfully started for default"
                  },
                  "responseCreated": "2022-03-31T22:01:18.370769Z",
                  "response": null
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          },
          "503": {
            "description": "This error will occur if Design Center APIs are not enabled."
          }
        },
        "description": "Run immediately an aggregate maintenance job.",
        "operationId": "POST_aggregates-maintenance-orgId-default-run-immediately"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID for which you want to run a maintenance job"
        }
      ]
    },
    "/aggregates/maintenance/orgId/{orgId}": {
      "summary": "Get current job",
      "x-category": "Aggregate Maintenance",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "message": "200 OK"
                  },
                  "responseCreated": "2021-12-17T11:04:12.945567Z",
                  "response": {
                    "id": "87bcb6ee-896d-4d8c-8fcf-b2e3a1342be1",
                    "organizationId": "default",
                    "triggerType": "CubeUpdateMaintenance(FirstTimeCubeProcessed)",
                    "creationTime": "2021-12-17T10:23:36.534831Z",
                    "startTime": "2021-12-17T10:23:36.534832Z",
                    "endTime": "2021-12-17T10:23:37.377313Z",
                    "status": "inprogress",
                    "errorInformation": {}
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get the running (in progress) maintenance job",
        "operationId": "GET_aggregates-maintenance-orgId-orgId"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID for which you want to get the running maintenance job."
        }
      ]
    },
    "/aggregates/maintenance/orgId/{orgId}/history": {
      "summary": "List maintenance jobs",
      "x-category": "Aggregate Maintenance",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "message": "200 OK"
                  },
                  "responseCreated": "2022-04-01T14:01:14.372616Z",
                  "response": {
                    "data": [
                      {
                        "id": "aba2c665-9535-4377-8eac-66482a0a1cbf",
                        "organizationId": "default",
                        "triggerType": "TimeBasedMaintenance",
                        "creationTime": "2022-04-01T05:53:55.278706Z",
                        "startTime": "2022-04-01T05:53:55.278706Z",
                        "endTime": "2022-04-01T05:53:55.449299Z",
                        "status": "done",
                        "errorInformation": {}
                      },
                      {
                        "id": "1169ecd4-1904-42ba-801e-efb649c8531c",
                        "organizationId": "default",
                        "triggerType": "TimeBasedMaintenance",
                        "creationTime": "2022-03-31T22:01:18.371775Z",
                        "startTime": "2022-03-31T22:01:18.371776Z",
                        "endTime": "2022-03-31T22:01:18.562840Z",
                        "status": "done",
                        "errorInformation": {}
                      },
                      {
                        "id": "955c391d-63e1-4e36-a3ba-4509ef1dd947",
                        "organizationId": "default",
                        "triggerType": "CubeUpdateMaintenance(FirstTimeCubeProcessed)",
                        "creationTime": "2022-03-31T15:23:07.948496Z",
                        "startTime": "2022-03-31T15:23:07.948496Z",
                        "endTime": "2022-03-31T15:23:08.236517Z",
                        "status": "done",
                        "errorInformation": {}
                      },
                      {
                        "id": "47dc8cc8-1ba4-45e4-b23d-a2135b1f3a5e",
                        "organizationId": "default",
                        "triggerType": "CubeUpdateMaintenance(FirstTimeCubeProcessed)",
                        "creationTime": "2022-03-31T15:20:57.113649Z",
                        "startTime": "2022-03-31T15:20:57.113650Z",
                        "endTime": "2022-03-31T15:20:57.689258Z",
                        "status": "done",
                        "errorInformation": {}
                      }
                    ],
                    "limit": 10,
                    "offset": 0,
                    "force_pull": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get a list of the maintenance jobs for an organization.",
        "operationId": "GET_aggregates-maintenance-orgId-orgId-history"
      },
      "parameters": [
        {
          "name": "orgId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string"
          },
          "description": "The Organization ID for which you want to get the history of maintenance jobs."
        }
      ]
    },
    "/aggregates/maintenance/scheduler/jobs/orgId/{orgId}": {
      "summary": "List and Create",
      "x-category": "Aggregate Maintenance Schedule",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "message": "success"
                  },
                  "responseCreated": "2022-04-02T14:34:23.585278Z",
                  "response": [
                    {
                      "job_id": "3740f5fd-a6b8-45fb-a3ab-313bf8481af3",
                      "organization_Id": "default",
                      "full_build": false,
                      "time_expression": "0 0 4 ? * * *",
                      "created_by_user": "admin",
                      "created_at": "2022-03-31T15:18:50.311944Z",
                      "latest_execution": {
                        "id": "8fe6e402-843b-4d04-a441-38ae4cc330b3",
                        "jobId": "3740f5fd-a6b8-45fb-a3ab-313bf8481af3",
                        "executedAt": "2022-04-02T10:56:35.160070Z"
                      },
                      "path": "time-based"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get all active maintenance schedules.",
        "operationId": "GET_aggregates-maintenance-scheduler-jobs-orgId-orgId",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to get the active maintenance schedules."
          },
          {
            "name": "active",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "When set to 'true' you would get only active scheduled jobs. When set to 'false' you would get only deactivated scheduled jobs. If not present, you would get all scheduled jobs."
          }
        ]
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "message": "Time-based schedule successfully created."
                  },
                  "responseCreated": "2021-08-11T12:17:04.308417Z",
                  "response": {
                    "job_id": "73274ded-b1cf-4c9b-bf25-c8d2e418ef90",
                    "time_expression": "0 0 0 ? * MON",
                    "scheduler_type": "time-based/maintenance",
                    "created_at": "2021-06-17T12:17:03.964072Z",
                    "created_by_user": "devUser"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new maintenance schedule using cron time expression.",
        "operationId": "POST_aggregates-maintenance-scheduler-jobs-orgId-orgId",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "time_expression": "0 0 0 ? * MON",
                "scheduler_type": "time-based"
              }
            }
          },
          "required": true
        },
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to get the active maintenance schedules."
          },
          {
            "name": "time_expression",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "When the maintenance schedule should be executed. Defined similarly to Cron job time format, with one more field (seconds) in the beginning. For example: 0 0 0 ? * MON"
          },
          {
            "name": "scheduler_type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Use the following value: time-based"
          }
        ]
      }
    },
    "/aggregates/maintenance-schedule/jobs/orgId/{orgId}/jobId/{jobId}": {
      "summary": "Delete",
      "x-category": "Aggregate Maintenance Schedule",
      "description": "Delete a maintenance schedule",
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 200,
                    "message": "success"
                  },
                  "responseCreated": "2021-06-17T11:53:47.091620Z",
                  "response": "successfully deleted job with Id: [9ec0e32f-53cb-4d90-8843-e39a0eac61f4]"
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Delete a maintenance schedule",
        "operationId": "DELETE_aggregates-maintenance-schedule-jobs-orgId-default-jobId-jobId",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID in which you want to delete a maintenance schedule ."
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Job ID (UUID) of the maintenance schedule you want to delete."
          }
        ]
      },
      "parameters": []
    },
    "/org/{orgId}/aggregates-creation/builds/history": {
      "summary": "List history",
      "x-category": "Aggregate Creation Schedule",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "data": [
                      {
                        "batchType": "materialize-pending-instances",
                        "createDate": "2023-04-13T22:39:38.826297Z",
                        "cubeId": "dea39a20-9920-4a79-51f3-1ff3a399fbd3",
                        "endTime": "2023-04-13T22:39:38.869098Z",
                        "estimateTime": 0,
                        "id": "a50fa6cd-a159-47ca-9b99-0261894e8dca",
                        "organizationId": "default",
                        "projectId": "7051865d-74a8-4aad-4904-ebf88d56880c",
                        "startTime": "0001-01-01T00:00:00Z",
                        "status": "done"
                      }
                    ],
                    "force_pull": false,
                    "limit": 10,
                    "offset": 0
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get all aggregate creation schedules.",
        "operationId": "GET_org-orgId-aggregates-creation-builds-history",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to get the aggregate creation schedules."
          }
        ]
      }
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates-creation/scheduler": {
      "summary": "Create and view schedule",
      "x-category": "Aggregate Creation Schedule",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": [
                    {
                      "created_at": "2023-05-22T08:50:56.138663Z",
                      "created_by_user": "admin",
                      "cube_id": "b89a2fb7-74f4-4828-706e-70f7186e10a0",
                      "full_build": true,
                      "job_id": "da67817b-22db-4dbf-91a8-05124e241f77",
                      "latest_execution": {
                        "executedAt": "0001-01-01T00:00:00Z",
                        "id": "",
                        "jobId": ""
                      },
                      "organization_Id": "default",
                      "path": "aggregate/create",
                      "project_id": "956a27dd-32b1-482e-7d5c-2488fdb9c943",
                      "time_expression": "0 25 06 ? * *"
                    }
                  ],
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get creation schedules for a cube.",
        "operationId": "GET_org-orgId-project-projectId-cube-cubeId-aggregates-creation-scheduler",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to list schedules."
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Project ID for which you want to list schedules."
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Cube ID for which you want to list schedules."
          }
        ]
      },
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "created_at": "2023-05-22T08:50:56.138663Z",
                    "created_by_user": "admin",
                    "cube_id": "b89a2fb7-74f4-4828-706e-70f7186e10a0",
                    "full_build": true,
                    "job_id": "da67817b-22db-4dbf-91a8-05124e241f77",
                    "latest_execution": {
                      "executedAt": "0001-01-01T00:00:00Z",
                      "id": "",
                      "jobId": ""
                    },
                    "organization_Id": "default",
                    "path": "aggregate/create",
                    "project_id": "956a27dd-32b1-482e-7d5c-2488fdb9c943",
                    "time_expression": "0 25 06 ? * *"
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Create a new schedule using cron time expression.",
        "operationId": "POST_org-orgId-project-projectId-cube-cubeId-aggregates-creation-scheduler",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "time_expression": "0 25 06 ? * *",
                "path": "aggregate/create"
              }
            }
          },
          "required": true
        },
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to create a schedule."
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Project ID for which you want to create a schedule."
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Cube ID for which you want to create a schedule."
          },
          {
            "name": "time_expression",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "When the schedule should be executed. Defined similarly to Cron job time format, with one more field (seconds) in the beginning. For example: 0 25 06 ? * *"
          },
          {
            "name": "path",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Use the following value: aggregate/create"
          }
        ]
      }
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates-creation/execute": {
      "summary": "Trigger new job",
      "x-category": "Aggregate Creation Schedule",
      "servers": [
        {
          "url": ""
        }
      ],
      "post": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "success": true
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Trigger a new aggregate creation job.",
        "operationId": "POST_org-orgId-project-projectId-cube-cubeId-aggregates-creation-execute",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to trigger a new job."
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Project ID for which you want to trigger a new job."
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Cube ID for which you want to trigger a new job."
          }
        ]
      }
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates-creation/scheduler/jobId/{jobId}": {
      "summary": "Delete schedule",
      "x-category": "Aggregate Creation Schedule",
      "servers": [
        {
          "url": ""
        }
      ],
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": "successfully deleted jobId: [da67817b-22db-4dbf-91a8-05124e241f77]",
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Delete the schedule with the specified ID.",
        "operationId": "DELETE_org-orgId-project-projectId-cube-cubeId-aggregates-creation-scheduler-jobId-JobId",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to delete a schedule."
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Project ID for which you want to delete a schedule."
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Cube ID for which you want to delete a schedule."
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the schedule that you want to delete."
          }
        ]
      }
    },
    "/org/{orgId}/project/{projectId}/cube/{cubeId}/aggregates-creation/scheduler/history/jobId/{jobId}": {
      "summary": "Cube schedule history",
      "x-category": "Aggregate Creation Schedule",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": {
                    "history": [
                      {
                        "executedAt": "2023-05-22T11:30:47.412504Z",
                        "id": "9b9ce2f2-b631-4d3b-8dc7-f75bd046f208",
                        "jobId": "7b1c5866-87d6-4db5-b4d4-ddc0c042fd31"
                      }
                    ],
                    "job_id": "7b1c5866-87d6-4db5-b4d4-ddc0c042fd31"
                  },
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "401": {
            "description": "This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "This error will occur if the org identified by orgId does not exist."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Get the history of the schedule with the specified ID.",
        "operationId": "GET_org-orgId-project-projectId-cube-cubeId-aggregates-creation-scheduler-history-jobId-JobId",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Organization ID for which you want to delete a schedule."
          },
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Project ID for which you want to delete a schedule."
          },
          {
            "name": "cubeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Cube ID for which you want to delete a schedule."
          },
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the schedule that you want to delete."
          }
        ]
      }
    },
    "/aggregates/orgId/{orgId}": {
      "summary": "Get definition details",
      "x-category": "Aggregate Details",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "response": [
                    {
                      "data": [
                        {
                          "id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
                          "name": "UDA color",
                          "type": "user_defined",
                          "subtype": "manual",
                          "incremental": false,
                          "organization_id": "default",
                          "project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
                          "project_caption": "Alpha",
                          "cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
                          "cube_name": "Alpha 1",
                          "cube_caption": "Alpha 1",
                          "connection_id": "con1",
                          "system_defined_with_distinct_count": false,
                          "promoted": false,
                          "distribution": {
                            "distribution_keys": [],
                            "bucket_count": null
                          },
                          "partitions": [],
                          "indexes": {
                            "index_columns": []
                          },
                          "attributes": [
                            {
                              "name": "Color",
                              "type": "dimension",
                              "partitioned": false
                            },
                            {
                              "name": "Color Key",
                              "type": "key",
                              "partitioned": false
                            }
                          ],
                          "stats": {
                            "created_at": "2023-07-03T09:43:16.622946Z",
                            "average_build_duration": 236,
                            "query_utilization": 0
                          },
                          "latest_instance": {
                            "id": "e0bc4492-8ce8-495d-a227-254f6dab834d",
                            "status": "active",
                            "message": "Normal aggregate activated",
                            "table_name": "as_agg_e0bc4492_uda_color",
                            "table_schema": "as_adventure",
                            "stats": {
                              "materialization_start_time": "2023-07-03T09:43:16.840573Z",
                              "materialization_end_time": "2023-07-03T09:43:17.077188Z",
                              "build_duration": 236,
                              "number_of_rows": 8
                            },
                            "build_query_id": "0a0c1e36-9065-4357-bf73-81b5789c38e3",
                            "project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
                            "cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
                            "definition_id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
                            "connection_id": "con1"
                          },
                          "active_instance": {
                            "id": "e0bc4492-8ce8-495d-a227-254f6dab834d",
                            "status": "active",
                            "message": "Normal aggregate activated",
                            "table_name": "as_agg_e0bc4492_uda_color",
                            "table_schema": "as_adventure",
                            "stats": {
                              "materialization_start_time": "2023-07-03T09:43:16.840573Z",
                              "materialization_end_time": "2023-07-03T09:43:17.077188Z",
                              "build_duration": 236,
                              "number_of_rows": 8
                            },
                            "build_query_id": "0a0c1e36-9065-4357-bf73-81b5789c38e3",
                            "project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
                            "cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
                            "definition_id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
                            "connection_id": "con1"
                          },
                          "most_recent_status": "active",
                          "blocked": false
                        }
                      ],
                      "total": 1,
                      "limit": 10,
                      "offset": 0,
                      "force_pull": false
                    }
                  ],
                  "status": {
                    "i18n_message": "response.ok",
                    "message": "OK"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Obtain details about aggregate definitions. You can query by ID, project, project ID, cube ID, status, and subtype.",
        "operationId": "GET_aggregates-org-orgId",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the organization for which you want to obtain aggregate definition details."
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ID of the aggregate definition"
          },
          {
            "name": "project",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Name of the project for which you need definitions"
          },
          {
            "name": "projectId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ID of the project for which you need definitions"
          },
          {
            "name": "cubeId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ID of the cube for which you need definitions"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Status of the definitions you need. Value should be 'active', 'invalid', or 'pending'."
          },
          {
            "name": "subtype",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Type of the definitions you need. Value should be 'prediction_defined', 'demand_defined', or 'manual' (for user-defined aggregates)."
          }
        ]
      }
    },
    "/aggregates/orgId/{orgId}/instances": {
      "summary": "Get instance details",
      "x-category": "Aggregate Details",
      "servers": [
        {
          "url": ""
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "message": "200 OK"
                  },
                  "responseCreated": "2023-07-03T12:49:03.463342Z",
                  "response": {
                    "data": [
                      {
                        "id": "e0bc4492-8ce8-495d-a227-254f6dab834d",
                        "status": "active",
                        "message": "Normal aggregate activated",
                        "table_name": "as_agg_e0bc4492_uda_color",
                        "table_schema": "as_adventure",
                        "stats": {
                          "materialization_start_time": "2023-07-03T09:43:16.840573Z",
                          "materialization_end_time": "2023-07-03T09:43:17.077188Z",
                          "build_duration": 236,
                          "number_of_rows": 8
                        },
                        "build_query_id": "0a0c1e36-9065-4357-bf73-81b5789c38e3",
                        "project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
                        "cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
                        "definition_id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
                        "connection_id": "con1"
                      },
                      {
                        "id": "d2c12d26-2dfc-4a35-9d57-32946ac6108e",
                        "status": "active",
                        "message": "Normal aggregate activated",
                        "table_name": "as_agg_d2c12d26_shpdcstmwkofmn",
                        "table_schema": "as_adventure",
                        "stats": {
                          "materialization_start_time": "2023-07-03T08:28:18.740059Z",
                          "materialization_end_time": "2023-07-03T08:28:18.826658Z",
                          "build_duration": 86,
                          "number_of_rows": 6
                        },
                        "build_query_id": "ed7b17be-ed4c-47bb-974c-5e6fb92db00b",
                        "project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
                        "cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
                        "definition_id": "52a54b83-d27e-4b5a-bc41-872db945a4f7",
                        "connection_id": "con1"
                      }
                    ],
                    "limit": 10,
                    "offset": 0,
                    "force_pull": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Obtain details about aggregate instances. You can query by definition ID, project ID, cube ID, status, batch ID, table name, start time, and end time.",
        "operationId": "GET_aggregates-org-orgId-instances",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the organization for which you want to obtain aggregate instance details."
          },
          {
            "name": "definitionId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ID of the aggregate definition"
          },
          {
            "name": "projectId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ID of the project for which you need instances"
          },
          {
            "name": "cubeId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ID of the cube for which you need instances"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Status of the definitions you need. Value should be 'active', 'invalid', 'deleted', or 'pending'."
          },
          {
            "name": "batchId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Batch ID."
          },
          {
            "name": "tableName",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Table name."
          },
          {
            "name": "startTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Start time when the instance was materialized. The format is like this: '2023-07-03T09:43:16'"
          },
          {
            "name": "endTime",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "End time when the instance was materialized. The format is like this: '2023-07-03T09:43:17'"
          }
        ]
      }
    },
    "/aggregates/orgId/{orgId}/definitionId/{defId}/instanceId/{instId}": {
      "summary": "Deactivate instance",
      "x-category": "Aggregate Details",
      "servers": [
        {
          "url": ""
        }
      ],
      "delete": {
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "example": {
                  "status": {
                    "code": 0,
                    "message": "200 OK"
                  },
                  "responseCreated": "2023-07-03T13:36:58.078573Z",
                  "response": {
                    "deleted": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request for example: Invalid parameters, missing parameters."
          },
          "401": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "404": {
            "description": "Unauthorized. This error will occur if calling user does not have access right for the API."
          },
          "500": {
            "description": "A server error occurred. Check the logs for more details."
          }
        },
        "description": "Deactivate the specified aggregate instances.",
        "operationId": "DELETE_aggregates-org-orgId-definitionId-defId-instanceId-instId",
        "parameters": [
          {
            "name": "orgId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the organization in which you want to deactivate an instance."
          },
          {
            "name": "defId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the definition for which you want to deactivate an instance."
          },
          {
            "name": "instId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "ID of the instance you want to deactivate."
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Project": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          },
          "created": {
            "type": "integer"
          },
          "createdBy": {
            "type": "string"
          }
        },
        "example": {
          "id": "4e3280de-98bc-46d3-4079-e8eef5449b36",
          "name": "Clickstream Analytics",
          "properties": {
            "aggregate-prediction": null,
            "caption": "Clickstream Analytics",
            "visible": true
          },
          "version": 15,
          "annotations": {
            "annotation": [
              {
                "name": "version",
                "value": "6"
              },
              {
                "name": "engineId",
                "value": "omniture"
              },
              {
                "name": "versionTag",
                "value": "Published on Mar 21, 2017 at 9:52am (PDT)"
              }
            ]
          },
          "attributes": {
            "attribute-key": [
              {
                "id": "b267221c-ee91-49bf-933f-d21c08e7d91b",
                "properties": {
                  "visible": true
                }
              }
            ],
            "keyed-attribute": [
              {
                "id": "c28e2ef9-0522-4dbf-508d-d80b5f93df68",
                "key-ref": "b267221c-ee91-49bf-933f-d21c08e7d91b",
                "name": "country",
                "properties": {
                  "caption": "Country",
                  "type": {
                    "enum": {}
                  },
                  "visible": true
                }
              }
            ]
          }
        }
      },
      "Environment": {
        "type": "object",
        "description": "Provides a type that stores Connection SubGroup information.",
        "properties": {
          "id": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "hiveServer2Port": {
            "type": "number"
          },
          "connections": {
            "type": "ConnectionGroup[]"
          }
        }
      },
      "Envelope": {
        "type": "object",
        "description": "Defines a standard result type wrapper for all return values to make parsing in JSON standardized.",
        "properties": {
          "status": {
            "type": "Status"
          },
          "response": {
            "type": "object"
          },
          "time_to_process": {
            "type": "string"
          }
        }
      },
      "Status": {
        "type": "object",
        "description": "The wrapper type for all REST responses.",
        "properties": {
          "code": {
            "type": "number"
          },
          "i18n_message": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "Webhook": {
        "type": "object",
        "description": "Metadata that defines a webhook.",
        "properties": {
          "org_id": {
            "type": "string"
          },
          "notification_type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "project_id": {
            "type": "string"
          }
        }
      },
      "Organization": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "created": {
            "type": "number"
          },
          "updated": {
            "type": "number"
          }
        }
      },
      "Aggregate": {
        "type": "object",
        "description": "A User Defined Aggregate Definition.",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "properties": {
            "type": "CommonProperties"
          },
          "attributes": {
            "type": "AttributeReferences"
          },
          "partitions": {
            "type": "PartitionReferences"
          }
        },
        "example": {
          "aggregate": [
            {
              "id": "67d7c22e-dceb-4188-9860-068091697f9b",
              "name": "My Best Aggregate",
              "properties": {
                "name": "My Best Aggregate",
                "notes": "this is an aggregate"
              },
              "attributes": {
                "attribute-ref": [
                  {
                    "id": "82c14308-3f56-4244-499d-756e80488e64"
                  },
                  {
                    "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
                  },
                  {
                    "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
                    "ref-path": {
                      "ref": [
                        {
                          "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                        }
                      ]
                    }
                  },
                  {
                    "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
                  },
                  {
                    "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
                  },
                  {
                    "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
                  }
                ]
              },
              "partitions": {}
            }
          ]
        }
      },
      "ExportedSystemAggregateDefinition": {
        "type": "object",
        "description": "A System-Defined Aggregate Definition.",
        "properties": {
          "atScaleExportVersion": {
            "type": "string",
            "description": "The AtScale system version from which the export originated."
          },
          "exportSummary": {
            "type": "ConnectionSummaries",
            "description": "Summarized information such as aggregate count, grouped by Connection ID."
          },
          "exportTimestamp": {
            "type": "string",
            "description": "Server-generated timestamp the export file was generated."
          },
          "exportOrgId": {
            "type": "string",
            "description": "Source Organization"
          },
          "exportProjectId": {
            "type": "string",
            "description": "Project ID"
          },
          "exportCubeId": {
            "type": "string",
            "description": "Cube ID.  Must exist on the target system."
          },
          "aggregates": {
            "type": "AggregateDefinitions",
            "description": "Aggregate Definitions.  For internal use only."
          }
        },
        "example": {
          "aggregate": [
            {
              "id": "67d7c22e-dceb-4188-9860-068091697f9b",
              "name": "My Best Aggregate",
              "properties": {
                "name": "My Best Aggregate",
                "notes": "this is an aggregate"
              },
              "attributes": {
                "attribute-ref": [
                  {
                    "id": "82c14308-3f56-4244-499d-756e80488e64"
                  },
                  {
                    "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
                  },
                  {
                    "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
                    "ref-path": {
                      "ref": [
                        {
                          "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                        }
                      ]
                    }
                  },
                  {
                    "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
                  },
                  {
                    "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
                  },
                  {
                    "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
                  }
                ]
              },
              "partitions": {}
            }
          ]
        }
      },
      "ImportedSystemAggregateDefinition": {
        "type": "object",
        "description": "A System-Defined Aggregate Definition.",
        "properties": {
          "atScaleExportVersion": {
            "type": "string",
            "description": "The AtScale system version from which the export originated."
          },
          "exportOrgId": {
            "type": "string",
            "description": "Source Organization ID."
          },
          "exportProjectId": {
            "type": "string",
            "description": "Project ID"
          },
          "importOrgId": {
            "type": "string",
            "description": "ID of the Organization to which the file was imported."
          },
          "importProjectId": {
            "type": "string",
            "description": "ID of the Project to which the file was imported."
          },
          "cubeId": {
            "type": "string",
            "description": "ID of the Cube containing the aggregate definitions."
          },
          "numberOfDefinitionsImported": {
            "type": "integer",
            "description": "Count of aggregate definitions that were imported."
          },
          "numberOfDefinitionsIgnored": {
            "type": "integer",
            "description": "Count of aggregate definitions that were not imported."
          },
          "aggregates": {
            "type": "AggregateImportDetails",
            "description": "Count: count of the response Values array, Values[ id: Source Aggregate UUID, newID: New Aggregate UUID, Imported: True|False, reason: Human readable reason for Imported=False.]"
          }
        },
        "example": {
          "aggregate": [
            {
              "id": "67d7c22e-dceb-4188-9860-068091697f9b",
              "name": "My Best Aggregate",
              "properties": {
                "name": "My Best Aggregate",
                "notes": "this is an aggregate"
              },
              "attributes": {
                "attribute-ref": [
                  {
                    "id": "82c14308-3f56-4244-499d-756e80488e64"
                  },
                  {
                    "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
                  },
                  {
                    "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
                    "ref-path": {
                      "ref": [
                        {
                          "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                        }
                      ]
                    }
                  },
                  {
                    "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
                  },
                  {
                    "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
                  },
                  {
                    "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
                  }
                ]
              },
              "partitions": {}
            }
          ]
        }
      },
      "AttributeReference": {
        "type": "object",
        "description": "A reference to an attribute (a uuid) + potentially a reference path.",
        "properties": {
          "id": {
            "type": "string"
          },
          "ref-path": {
            "type": "RefPath"
          },
          "attribute-ref": {
            "type": "AttributeReference[]"
          }
        },
        "example": {
          "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
          "ref-path": {
            "ref": [
              {
                "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
              }
            ]
          }
        }
      },
      "AttributeReferences": {
        "type": "object",
        "description": "A reference to an attribute (a uuid) + potentially a reference path.",
        "properties": {
          "attribute-ref": {
            "type": "Attribute"
          }
        },
        "example": {
          "attribute-ref": [
            {
              "id": "82c14308-3f56-4244-499d-756e80488e64"
            },
            {
              "id": "cd5089b9-e228-45fa-7507-e74fcf88617d"
            },
            {
              "id": "c0bbeb6f-d74c-45f9-43c7-1e5bb8b4bf62",
              "ref-path": {
                "ref": [
                  {
                    "id": "8e5f2b5c-427c-4796-8424-13ce0963ca5a"
                  }
                ]
              }
            },
            {
              "id": "9c8cabbe-6510-48ca-9648-8bc376c649b2"
            },
            {
              "id": "3b6b9a46-22d8-4ed9-9c4b-12612dfa3675"
            },
            {
              "id": "b68a0ca1-93ba-4807-8b54-f2d2654ca71c"
            }
          ]
        }
      },
      "PartitionReference": {},
      "CommonProperties": {
        "type": "object",
        "description": "Common object properties.",
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        },
        "example": {
          "name": "my name",
          "description": "my description",
          "notes": "my notes"
        }
      },
      "Engine": {
        "type": "object",
        "description": "Defines a pointer to an AtScale Engine.",
        "properties": {
          "engine_id": {
            "type": "string"
          },
          "org_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "protocol": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "port": {
            "type": "string"
          },
          "properties": {
            "type": "object"
          },
          "default_engine": {
            "type": "bool"
          }
        },
        "example": {
          "engine_id": "94d12cde-7e75-4d45-53b8-1ec1d5b92982",
          "org_id": "default",
          "name": "My Engine",
          "protocol": "http",
          "host": "local.infra.atscale.com",
          "port": 10502,
          "properties": "{}",
          "default_engine": true
        }
      },
      "connectiongroup": {
        "type": "object",
        "description": "Defines the Connection Group Object for configuring Data Warehouses.",
        "properties": {
          "id": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "hiveServer2Port": {
            "type": "int"
          },
          "isDefault": {
            "type": "bool"
          },
          "connections": {
            "type": "object"
          }
        },
        "example": {
          "id": "test",
          "organizationId": "default",
          "name": "Test",
          "hiveServer2Port": 11112,
          "isDefault": false,
          "connections": [
            {
              "id": "d41b3ab5-db46-47ac-8417-3dca2579a131",
              "name": "Hive Warehouse",
              "organizationId": "default",
              "connectionId": "con1",
              "hdfsUri": "hdfs://atscale-01:8020",
              "defaultSchema": "as_adventure",
              "extraProperties": {},
              "subgroups": [
                {
                  "id": "0eec2ea7-3c33-4f3b-a5d0-d7bde1e48e3a",
                  "name": "atscale-hive-system",
                  "hosts": "atscale-01,atscale-02",
                  "port": 10510,
                  "connectorType": "hive",
                  "username": "atscale",
                  "extraJdbcFlags": "",
                  "queryRoles": [
                    "large_user_query_role",
                    "system_query_role"
                  ],
                  "extraProperties": {}
                },
                {
                  "id": "fd8465df-d278-431c-a01c-2b77d8d5b098",
                  "name": "atscale-hive-interactive",
                  "hosts": "atscale-01,atscale-02",
                  "port": 10510,
                  "connectorType": "hive",
                  "username": "atscale",
                  "extraJdbcFlags": "",
                  "queryRoles": [
                    "small_user_query_role"
                  ],
                  "extraProperties": {}
                }
              ]
            }
          ]
        }
      }
    },
    "responses": {},
    "parameters": {},
    "examples": {},
    "requestBodies": {},
    "headers": {},
    "securitySchemes": {
      "jwt": {
        "description": "Each request must contain the headers necessary for authentication of JWT Token",
        "type": "apiKey",
        "in": "header",
        "name": "jwt"
      }
    },
    "links": {},
    "callbacks": {}
  }
}