Zoho Analytics Modeling APIs API

Modeling APIs manage workspaces, views, columns, and folders, and support copying across or within Zoho Analytics accounts.

Operations 58

POST /restapi/v2/workspaces Create Workspace #
POST /restapi/v2/workspaces/{workspace-id} Copy Workspace #
PUT /restapi/v2/workspaces/{workspace-id} Rename Workspace #
DELETE /restapi/v2/workspaces/{workspace-id} Delete Workspace #
POST /restapi/v2/workspaces/{workspace-id}/tables Create Table #
POST /restapi/v2/workspaces/{workspace-id}/querytables Create Query Table #
PUT /restapi/v2/workspaces/{workspace-id}/querytables/{table-id} Edit Query Table #
POST /restapi/v2/workspaces/{workspace-id}/reports Create Report #
PUT /restapi/v2/workspaces/{workspace-id}/reports/{report-id} Update Report #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/saveas Save As View #
PUT /restapi/v2/workspaces/{workspace-id}/views/movetofolder Move Views To Folder #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id} Rename View #
DELETE /restapi/v2/workspaces/{workspace-id}/views/{view-id} Delete View #
POST /restapi/v2/workspaces/{workspace-id}/trash/{view-id} Restore Trash View #
DELETE /restapi/v2/workspaces/{workspace-id}/trash/{view-id} Delete Trash View #
POST /restapi/v2/workspaces/{workspace-id}/folders Create Folder #
PUT /restapi/v2/workspaces/{workspace-id}/folders/{folder-id} Rename Folder #
DELETE /restapi/v2/workspaces/{workspace-id}/folders/{folder-id} Delete Folder #
POST /restapi/v2/workspaces/{workspace-id}/folders/{folder-id}/default Make Default Folder #
PUT /restapi/v2/workspaces/{workspace-id}/folders/{folder-id}/move Change Folder Hierarchy #
PUT /restapi/v2/workspaces/{workspace-id}/folders/{folder-id}/reorder Change Folder Position #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/data/sort Sort Data by Columns #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns Add Column #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/{column-id} Rename Column #
DELETE /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/{column-id} Delete Column #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/{column-id}/lookup Add Lookup #
DELETE /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/{column-id}/lookup Remove Lookup #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/hide Hide Columns #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/show Show Columns #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/reorder Reorder Columns #
POST /restapi/v2/workspaces/{source-workspace-id}/views/copy Copy Views #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/formulas/copy Copy Formulas #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/similarviews Create Similar Views #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/autoanalyse Auto Analyse View #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/{column-id}/autoanalyse Auto Analyse Column #
GET /restapi/v2/workspaces/{workspace-id}/variables Get all variables in a workspace #
POST /restapi/v2/workspaces/{workspace-id}/variables Create a variable #
GET /restapi/v2/workspaces/{workspace-id}/variables/{variable-id} Get details of a specific variable #
PUT /restapi/v2/workspaces/{workspace-id}/variables/{variable-id} Update a variable #
DELETE /restapi/v2/workspaces/{workspace-id}/variables/{variable-id} Delete a variable #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/customformulas Add Formula Column #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/customformulas/{formula-id} Edit Formula Column #
DELETE /restapi/v2/workspaces/{workspace-id}/views/{view-id}/customformulas/{formula-id} Delete Formula Column #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/aggregateformulas Add Aggregate Formula #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/aggregateformulas/{formula-id} Edit Aggregate Formula #
DELETE /restapi/v2/workspaces/{workspace-id}/views/{view-id}/aggregateformulas/{formula-id} Delete Aggregate Formula #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/emailschedules Create Email Schedule #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/emailschedules/{schedule-id} Update Email Schedule #
DELETE /restapi/v2/workspaces/{workspace-id}/views/{view-id}/emailschedules/{schedule-id} Delete Email Schedule #
POST /restapi/v2/workspaces/{workspace-id}/views/{view-id}/emailschedules/{schedule-id}/trigger Trigger Email Schedule #
PUT /restapi/v2/workspaces/{workspace-id}/views/{view-id}/emailschedules/{schedule-id}/status Change Email Schedule Status #
POST /restapi/v2/automl/workspaces/{workspace-id}/analysis Create AutoML Analysis #
POST /restapi/v2/automl/workspaces/{workspace-id}/analysis/{analysis-id}/models/{model-id}/deployments Create AutoML Analysis Deployment #
POST /restapi/v2/automl/workspaces/{workspace-id}/analysis/{analysis-id}/models/{model-id}/whatif AutoML What If Analysis #
POST /restapi/v2/automl/workspaces/{workspace-id}/analysis/{analysis-id}/deployments/{deployment-id}/execute Run AutoML Analysis #
DELETE /restapi/v2/automl/workspaces/{workspace-id}/analysis/{analysis-id}/deployments/{deployment-id} Delete AutoML Analysis Model Deployment #
DELETE /restapi/v2/automl/workspaces/{workspace-id}/analysis/{analysis-id}/models/{model-id} Delete AutoML Analysis Model #
DELETE /restapi/v2/automl/workspaces/{workspace-id}/analysis/{analysis-id} Delete AutoML Analysis #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zoho-analytics-modeling-apis-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zoho-analytics-modeling-apis-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zoho Analytics Bulk Bulk Export - Asynchronous Modeling APIs API
  version: v2
  description: API for Zoho Analytics Bulk Operations, including data import and export.
servers:
- url: https://analyticsapi.zoho.com
security:
- iam-oauth2-schema:
  - ZohoAnalytics.data.read
  - ZohoAnalytics.data.create
  - ZohoAnalytics.data.update
  - ZohoAnalytics.data.delete
  - ZohoAnalytics.data.all
tags:
- name: Modeling APIs
  description: Modeling APIs manage workspaces, views, columns, and folders, and support copying across or within Zoho Analytics accounts.
paths:
  /restapi/v2/workspaces:
    post:
      tags:
      - Modeling APIs
      summary: Create Workspace
      description: Create a blank workspace in the specified organization.
      operationId: createWorkspace
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID (source org).
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/CreateWorkspaceConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '200':
          description: Workspace created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateWorkspaceResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Create workspace
                    data:
                      workspaceId: '1767024000003145002'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}:
    post:
      tags:
      - Modeling APIs
      summary: Copy Workspace
      description: Copy the specified workspace to another org or within the same org.
      operationId: copyWorkspace
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Source Organization ID
      - name: ZANALYTICS-DEST-ORGID
        in: header
        required: false
        schema:
          type: string
        description: Destination Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: Workspace ID to be copied
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/CopyWorkspaceConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '200':
          description: Workspace copied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CopyWorkspaceResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Copy workspace
                    data:
                      workspaceId: '1767024000003145006'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
    put:
      tags:
      - Modeling APIs
      summary: Rename Workspace
      description: Renames the specified workspace.
      operationId: renameWorkspace
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: ID of the workspace to rename
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/RenameWorkspaceConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
      responses:
        '204':
          description: Workspace renamed successfully (No Content)
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
    delete:
      tags:
      - Modeling APIs
      summary: Delete Workspace
      description: Deletes the specified workspace.
      operationId: deleteWorkspace
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: ID of the workspace to delete
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.delete
      responses:
        '204':
          description: Workspace deleted successfully (No Content)
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/tables:
    post:
      tags:
      - Modeling APIs
      summary: Create Table
      description: Create a table in the specified workspace.
      operationId: createTable
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: Workspace ID
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/CreateTableConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '200':
          description: Table created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTableResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Create table
                    data:
                      viewId: '1767024000003145012'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/querytables:
    post:
      tags:
      - Modeling APIs
      summary: Create Query Table
      description: This API allows you to create a query table using a SQL SELECT query.
      operationId: createQueryTable
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: Workspace ID
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/CreateQueryTableConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '200':
          description: Query table created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateQueryTableResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Create query table
                    data:
                      viewId: '1767024000003145013'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/querytables/{table-id}:
    put:
      tags:
      - Modeling APIs
      summary: Edit Query Table
      description: This API allows you to update an existing query table using a SQL SELECT query.
      operationId: editQueryTable
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: Workspace ID
      - name: table-id
        in: path
        required: true
        schema:
          type: string
        description: Query Table ID
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/EditQueryTableConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
      responses:
        '204':
          description: Query table updated successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/reports:
    post:
      tags:
      - Modeling APIs
      summary: Create Report
      description: This API allows you to create a report (chart/table/pivot) in a workspace.
      operationId: createReport
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: Workspace ID
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/CreateReportConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '200':
          description: Report created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateReportResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Create report
                    data:
                      reportId: '1767024000003145020'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/reports/{report-id}:
    put:
      tags:
      - Modeling APIs
      summary: Update Report
      description: This API allows you to update the metadata or design of an existing report.
      operationId: updateReport
      parameters:
      - name: ZANALYTICS-ORGID
        in: header
        required: true
        schema:
          type: string
        description: Organization ID
      - name: workspace-id
        in: path
        required: true
        schema:
          type: string
        description: Workspace ID
      - name: report-id
        in: path
        required: true
        schema:
          type: string
        description: Report ID
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/UpdateReportConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
      responses:
        '204':
          description: Report updated successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/views/{view-id}/saveas:
    post:
      tags:
      - Modeling APIs
      summary: Save As View
      description: This API creates a new view by duplicating an existing one.
      operationId: saveAsView
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/SaveAsViewConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '200':
          description: New view created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveAsViewResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Saveas view
                    data:
                      viewId: '1767024000004723001'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/views/movetofolder:
    put:
      tags:
      - Modeling APIs
      summary: Move Views To Folder
      description: Moves multiple views into a specified folder.
      operationId: moveViewsToFolder
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/MoveViewsToFolderConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
      responses:
        '204':
          description: Views moved successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/views/{view-id}:
    put:
      tags:
      - Modeling APIs
      summary: Rename View
      description: Renames an existing view.
      operationId: renameView
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/RenameViewConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
      responses:
        '204':
          description: View renamed successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
    delete:
      tags:
      - Modeling APIs
      summary: Delete View
      description: Moves the view to trash.
      operationId: deleteView
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/DeleteViewConfig'
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.delete
      responses:
        '204':
          description: View deleted and moved to trash.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/trash/{view-id}:
    post:
      tags:
      - Modeling APIs
      summary: Restore Trash View
      description: Restores a view from trash.
      operationId: restoreTrashView
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/RestoreTrashViewConfig'
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '204':
          description: Trash view restored successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
    delete:
      tags:
      - Modeling APIs
      summary: Delete Trash View
      description: Permanently deletes a view from trash.
      operationId: deleteTrashView
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/DeleteTrashViewConfig'
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.delete
      responses:
        '204':
          description: View deleted permanently from trash.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/folders:
    post:
      tags:
      - Modeling APIs
      summary: Create Folder
      description: Create a folder under a specified workspace to organize views.
      operationId: createFolder
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/CreateFolderConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      responses:
        '200':
          description: Folder created successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFolderResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Create folder
                    data:
                      folderId: '1767024000004578011'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
  /restapi/v2/workspaces/{workspace-id}/folders/{folder-id}:
    put:
      tags:
      - Modeling APIs
      summary: Rename Folder
      description: Rename an existing folder in the workspace.
      operationId: renameFolder
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/folder-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/RenameFolderConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      responses:
        '204':
          description: Folder renamed successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
    delete:
      tags:
      - Modeling APIs
      summary: Delete Folder
      description: Delete a folder from the workspace. Optionally delete views within.
      operationId: deleteFolder
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/folder-id'
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/DeleteFolderConfig'
            encoding:
              CONFIG:
                contentType: application/json
      responses:
        '204':
          description: Folder deleted successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.delete
  /restapi/v2/workspaces/{workspace-id}/folders/{folder-id}/default:
    post:
      tags:
      - Modeling APIs
      summary: Make Default Folder
      description: Set the specified folder as the default folder for a given view type.
      operationId: makeDefaultFolder
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/folder-id'
      responses:
        '204':
          description: Default folder set successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
  /restapi/v2/workspaces/{workspace-id}/folders/{folder-id}/move:
    put:
      tags:
      - Modeling APIs
      summary: Change Folder Hierarchy
      description: Update the hierarchy of a folder (parent or child) and set its parent if needed.
      operationId: changeFolderHierarchy
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/folder-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/ChangeFolderHierarchyConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      responses:
        '204':
          description: Folder hierarchy updated successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
  /restapi/v2/workspaces/{workspace-id}/folders/{folder-id}/reorder:
    put:
      tags:
      - Modeling APIs
      summary: Change Folder Position
      description: Reorder a folder by moving it relative to another folder.
      operationId: changeFolderPosition
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/folder-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/ChangeFolderPositionConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      responses:
        '204':
          description: Folder position updated successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
  /restapi/v2/workspaces/{workspace-id}/views/{view-id}/data/sort:
    put:
      tags:
      - Modeling APIs
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
      summary: Sort Data by Columns
      description: Sorts the data in the table based on specified columns.
      operationId: sortDataByColumns
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SortDataByColumnsConfig'
            examples:
              sample:
                value:
                  columns:
                  - '2531676000011845005'
                  - '2531676000011845007'
                  sortOrder: 2
                  resetSort: false
      responses:
        '204':
          description: Data sorted successfully (No Content)
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns:
    post:
      tags:
      - Modeling APIs
      summary: Add Column
      description: This API allows you to add a new column to the specified view.
      operationId: addColumn
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/AddColumnConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.create
      responses:
        '200':
          description: Column added successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddColumnResponse'
              examples:
                success:
                  value:
                    status: success
                    summary: Add column
                    data:
                      columnId: '1767024000003145017'
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
  /restapi/v2/workspaces/{workspace-id}/views/{view-id}/columns/{column-id}:
    put:
      tags:
      - Modeling APIs
      summary: Rename Column
      description: This API allows you to rename a column.
      operationId: renameColumn
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      - $ref: '#/components/parameters/column-id'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/RenameColumnConfig'
              required:
              - CONFIG
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.update
      responses:
        '204':
          description: Column renamed successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/refs/heads/main/v2.0/zoho-analytics-api-common.json#/components/responses/CommonErrorResponse
    delete:
      tags:
      - Modeling APIs
      summary: Delete Column
      description: This API deletes the specified column from a view.
      operationId: deleteColumn
      parameters:
      - $ref: '#/components/parameters/org-id'
      - $ref: '#/components/parameters/workspace-id'
      - $ref: '#/components/parameters/view-id'
      - $ref: '#/components/parameters/column-id'
      requestBody:
        required: false
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                CONFIG:
                  $ref: '#/components/schemas/DeleteColumnConfig'
            encoding:
              CONFIG:
                contentType: application/json
      security:
      - iam-oauth2-schema:
        - ZohoAnalytics.modeling.delete
      responses:
        '204':
          description: Column deleted successfully.
        default:
          $ref: https://raw.githubusercontent.com/zoho/analytics-oas/ref

# --- truncated at 32 KB (126 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/zoho-analytics/refs/heads/main/openapi/zoho-analytics-modeling-apis-api-openapi.yml