DocsReferenceWorkspaceAPI

Reference

WorkspaceAPI

Workspace-scoped calls: views, folders, tags, query tables, variables, slideshows, email schedules, data alerts, backups, linked workspaces, sharing, workspace membership and workspace security controls. 117 methods.

go
org       := ZAnalytics.GetOrgInstance(&ac, orgId)
workspace := ZAnalytics.GetWorkspaceInstance(&ac, orgId, workspaceId)
view      := ZAnalytics.GetViewInstance(&ac, orgId, workspaceId, viewId)
bulk      := ZAnalytics.GetBulkInstance(&ac, orgId, workspaceId)

WorkspaceAPI exposes 117 methods. Method names are PascalCase (exported) and identifiers are string.

Methods#

AddAdmins, AddDefault, AddFavorite, AddGroupMembers, AddTagToViews, AddWorkspaceUsers, AutoMLAnalysisPrediction, BackupWorkspaceNow, ChangeAlertStatus, ChangeEmailScheduleStatus, ChangeFolderHierarchy, ChangeFolderPosition, ChangeWorkspaceUserRole, ChangeWorkspaceUserStatus, Copy, CopyViews, CreateAutoMLAnalysis, CreateAutoMLAnalysisDeployment, CreateDashboard, CreateEmailSchedule, CreateFolder, CreateGroup, CreateQueryTable, CreateReport, CreateSlideshow, CreateTable, CreateTag, CreateVariable, Delete, DeleteAlerts, DeleteAutoMLAnalysis, DeleteAutoMLAnalysisDeployment, DeleteAutoMLAnalysisModel, DeleteEmailSchedule, DeleteFolder, DeleteGroup, DeleteSlideshow, DeleteTag, DeleteTrashView, DeleteVariable, DeployAutoMLAnalysis, DisableDomainAccess, DownloadWorkspaceBackup, EditQueryTable, EnableDomainAccess, ExportAsTemplate, GetAdmins, GetAggregateFormulaDependents, GetAggregateFormulas, GetAggregateFormulaValue, GetAlertConfiguration, GetAlertEvents, GetAlertsInWorkspace, GetAutoMLAnalysis, GetAutoMLAnalysisDetails, GetDashboardMetadata, GetDatasources, GetDeploymentDetails, GetEmailSchedules, GetFolders, GetGroupDetails, GetGroups, GetLinkableWorkspaces, GetLinkedWorkspaces, GetLinkedWorkspaceSyncDetails, GetQueryTableDetails, GetQueryTables, GetReportMetadata, GetSecretKey, GetSharedDetailsForViews, GetShareInfo, GetSlideshowDetails, GetSlideshows, GetSlideshowUrl, GetTaggedViews, GetTags, GetTrashViews, GetVariableDetails, GetVariables, GetViews, GetWorkspaceAccessRestrictions, GetWorkspaceBackups, GetWorkspaceBackupStatus, GetWorkspaceDetails, GetWorkspaceLinkingCompatibility, GetWorkspaceRestoreStatus, GetWorkspaceUsers, LinkWorkspaces, MakeDefaultFolder, MoveViewsToFolder, RemoveAdmins, RemoveDefault, RemoveFavorite, RemoveGroupMembers, RemoveShare, RemoveTagFromViews, RemoveWorkspaceUsers, Rename, RenameFolder, RenameGroup, RestoreTrashView, RestoreWorkspaceFromBackup, RunAlert, ShareViews, SyncData, SyncLinkedWorkspaces, TriggerEmailSchedule, UnlinkWorkspaces, UpdateAlert, UpdateDashboard, UpdateDatasourceConnection, UpdateEmailSchedule, UpdateReport, UpdateSlideshow, UpdateTag, UpdateVariable, UpdateWorkspaceAccessRestrictions

AddAdmins#

go
AddAdmins(emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Add admins for the specified workspace.

ParameterDescription
emailidsThe email address of the admin users to be added.
configContains any additional control configurations.

AddDefault#

go
AddDefault() (serverexception *ServerException)

Adds a specified workspace as default.

AddFavorite#

go
AddFavorite() (serverexception *ServerException)

Adds a specified workspace as favorite.

AddGroupMembers#

go
AddGroupMembers(groupid string, emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Add users to the specified group.

ParameterDescription
groupidThe id of the group.
emailidsThe email address of the users to be added to the group.
configContains any additional control configurations.

AddTagToViews#

go
AddTagToViews(tagid string, viewids interface{}, config map[string]interface{}) (serverexception *ServerException)

Adds the specified tag to multiple views in the workspace.

ParameterDescription
tagidId of the tag.
viewidsView ids to be associated with the tag.
configContains any additional control configurations.

AddWorkspaceUsers#

go
AddWorkspaceUsers(emailids interface{}, role string, config map[string]interface{}) (serverexception *ServerException)

Add users to the specified workspace.

ParameterDescription
emailidsThe email address of the users to be added.
roleRole of the users to be added.
configContains any additional control configurations.

AutoMLAnalysisPrediction#

go
AutoMLAnalysisPrediction(analysisid string, modelid string, features map[string]interface{}, config map[string]interface{},) (prediction interface{}, serverexception *ServerException)

Get predictions using a trained AutoML model.

ParameterDescription
analysisidId of the AutoML Analysis.
modelidId of the AutoML Analysis model.
featuresFeature name to value mapping.
configContains any additional control parameters.

Returns — Returns prediction details as interface.

BackupWorkspaceNow#

go
BackupWorkspaceNow(config map[string]interface{}) (backupdetails interface{}, serverexception *ServerException)

Trigger an instant backup for the specified workspace.

ParameterDescription
configContains any additional control configurations.

Returns — Returns the triggered backup details as interface.

ChangeAlertStatus#

go
ChangeAlertStatus(alertids interface{}, enabled bool, config map[string]interface{}) (serverexception *ServerException)

Enable or disable the specified data alerts in the workspace.

ParameterDescription
alertidsIds of the data alerts.
enabledPass true to enable the data alerts and false to disable them.
configContains any additional control configurations.

ChangeEmailScheduleStatus#

go
ChangeEmailScheduleStatus(scheduleid, operation string) (serverexception *ServerException)

Trigger configured email schedules instantly.

ParameterDescription
scheduleidId for the email schedule.
operationNew status for the schedule ( Values - activatedeactivate ).

ChangeFolderHierarchy#

go
ChangeFolderHierarchy(folderid string, hierarchy int, config map[string]interface{}) (serverexception *ServerException)

Swaps the hierarchy of a parent folder and a subfolder.

ParameterDescription
folderidThe id of the folder.
hierarchyNew hierarchy for the folder. (0 - Parent; 1 - Child)
configContains any additional control configurations.

ChangeFolderPosition#

go
ChangeFolderPosition(folderid, referencefolderid string, config map[string]interface{}) (serverexception *ServerException)

Place the folder above the reference folder.

ParameterDescription
folderidId of the folder to be moved.
referencefolderidId of the reference folder.
configContains any additional control configurations.

ChangeWorkspaceUserRole#

go
ChangeWorkspaceUserRole(emailids interface{}, role string, config map[string]interface{}) (serverexception *ServerException)

Change users role in the specified workspace.

ParameterDescription
emailidsThe email address of the users to be modified.
roleNew role of the users.
configContains any additional control configurations.

ChangeWorkspaceUserStatus#

go
ChangeWorkspaceUserStatus(emailids interface{}, operation string, config map[string]interface{}) (serverexception *ServerException)

Change users staus in the specified workspace.

ParameterDescription
emailidsThe email address of the users to be modified.
operationNew status for the users ( Values - activatedeactivate )
configContains any additional control configurations.

Copy#

go
Copy(newworkspacename string, config map[string]interface{}, destorgid string) (newworkspaceid string, serverexception *ServerException)

Copy the specified workspace from one organization to another or within the organization.

ParameterDescription
newworkspacenameName of the new workspace.
configContains any additional control configurations.
destorgidId of the organization where the destination workspace is present.

Returns — Returns copied workspace id as string.

CopyViews#

go
CopyViews(viewids interface{}, destworkspaceid string, config map[string]interface{}, destorgid string) (views interface{}, serverexception *ServerException)

Copy the specified views from one workspace to another workspace.

ParameterDescription
viewidsThe id of the views to be copied.
destworkspaceidThe destination workspace id.
configContains any additional control configurations.
destorgidId of the organization where the destination workspace is present.

Returns — Returns view list as interface.

CreateAutoMLAnalysis#

go
CreateAutoMLAnalysis(name string, trainingtableid string, predictiontype string, features []interface{}, serveroption int, algorithms map[string]interface{}, config map[string]interface{},) (analysisid string, serverexception *ServerException)

Create a new AutoML analysis within the workspace.

ParameterDescription
nameName of the AutoML analysis.
trainingtableidId of the training table.
predictiontypePrediction type (REGRESSION, CLASSIFICATION, CLUSTERING).
featuresList of feature column names.
serveroptionCompute size option.
algorithmsAlgorithms configuration.
configContains any additional control parameters.

Returns — Returns created AutoML Analysis Id as string.

CreateAutoMLAnalysisDeployment#

go
CreateAutoMLAnalysisDeployment(analysisid string, modelid string, inputtableid string, outputtable string, outputcolumns []interface{}, predictioncolumn string, serveroption int, importtype string, scheduledetails interface{}, config map[string]interface{},) (deployments interface{}, serverexception *ServerException)

Deploy the AutoML analysis model.

ParameterDescription
analysisidId of the AutoML Analysis.
modelidId of the AutoML Analysis model.
inputtableidId of the input table.
outputtableName of the output table to be created.
outputcolumnsList of output column names.
predictioncolumnName of the prediction column.
serveroptionCompute size option.
importtypeImport type (APPEND, TRUNCATEADD, UPDATEADD).
scheduledetailsSchedule configuration.
configContains any additional control parameters.

Returns — Returns created AutoML deployment details as interface.

CreateDashboard#

go
CreateDashboard(displayname string, layout string, config map[string]interface{}) (dashboardid string, serverexception *ServerException)

Create a dashboard in the specified workspace.

ParameterDescription
displaynameName of the dashboard.
layoutLayout configuration of the dashboard.
configContains any additional control configurations.

Returns — Returns the new dashboard id as string.

CreateEmailSchedule#

go
CreateEmailSchedule(schedulename string, viewids interface{}, format string, emailids interface{}, scheduledetails map[string]interface{}, config map[string]interface{}) (scheduleid string, serverexception *ServerException)

Create an email schedule in the specified workspace.

ParameterDescription
schedulenameName of the email schedule.
viewidsView ids to be mailed.
formatThe format in which the data has to be mailed.
emailidsThe recipients' email addresses for sending views.
scheduledetailsContains schedule frequency, date, and time info.
configContains any additional control configurations.

Returns — Returns the created email schedule id.

CreateFolder#

go
CreateFolder(foldername string, config map[string]interface{}) (folderid string, serverexception *ServerException)

Create a folder in the specified workspace.

ParameterDescription
foldernameThe name of the folder.
configContains any additional control configurations.

Returns — folderid (string)

CreateGroup#

go
CreateGroup(groupname string, emailids interface{}, config map[string]interface{}) (groupid string, serverexception *ServerException)

Create a group in the specified workspace.

ParameterDescription
groupnameName of the group.
emailidsThe email address of the users to be added to the group.
configContains any additional control configurations.

Returns — Returns the created group id.

CreateQueryTable#

go
CreateQueryTable(sqlquery string, querytablename string, config map[string]interface{}) (viewid string, serverexception *ServerException)

Create a new query table in the workspace.

ParameterDescription
sqlquerySQL query to construct the query table.
querytablenameName of the query table to be created.
configContains the control configurations.

Returns — Returns the newly created view id.

CreateReport#

go
CreateReport(config map[string]interface{}) (viewid string, serverexception *ServerException)

Create a report in the specified workspace.

ParameterDescription
configContains the control configurations.

Returns — Created view id.

CreateSlideshow#

go
CreateSlideshow(slidename string, viewids interface{}, config map[string]interface{}) (slideid string, serverexception *ServerException)

Create a slideshow in the specified workspace.

ParameterDescription
slidenameName of the slideshow to be created.
viewidsIds of the view to be included in the slideshow.
configContains any additional control configurations.

Returns — Returns the created slideshow id.

CreateTable#

go
CreateTable(tabledesign map[string]interface{}) (viewid string, serverexception *ServerException)

Create a table in the specified workspace.

ParameterDescription
tabledesignStructure of the table to be created.

Returns — Returns created table id.

CreateTag#

go
CreateTag(tagname, colorcode string, config map[string]interface{}) (tagid string, serverexception *ServerException)

Create a tag in the specified workspace.

ParameterDescription
tagnameName of the tag to be created.
colorcodeColor of the tag in HEX color code.
configContains any additional control configurations.

Returns — Returns the new tag id.

CreateVariable#

go
CreateVariable(variablename string, variabledatatype int, variabletype int, config map[string]interface{}) (variableid string, serverexception *ServerException)

Create a variable in the workspace.

ParameterDescription
variablenameName of the variable to be created.
variabledatatypeDatatype of the variable to be created.
variabletypeType of the variable to be created.
configContains the control configurations.

Returns — Returns the new variable id.

Delete#

go
Delete() (serverexception *ServerException)

Delete a specified workspace in the organization.

DeleteAlerts#

go
DeleteAlerts(alertids interface{}, config map[string]interface{}) (serverexception *ServerException)

Delete the specified data alerts from the workspace.

ParameterDescription
alertidsIds of the data alerts to be deleted.
configContains any additional control configurations.

DeleteAutoMLAnalysis#

go
DeleteAutoMLAnalysis(analysisid string, config map[string]interface{}) (serverexception *ServerException)

Delete a specified AutoML analysis from the workspace.

ParameterDescription
analysisidId of the AutoML Analysis.
config—

DeleteAutoMLAnalysisDeployment#

go
DeleteAutoMLAnalysisDeployment(analysisid string, deploymentid string, config map[string]interface{},) (serverexception *ServerException)

Delete an AutoML analysis deployment.

ParameterDescription
analysisidId of the AutoML Analysis.
deploymentidId of the deployment.
config—

DeleteAutoMLAnalysisModel#

go
DeleteAutoMLAnalysisModel(analysisid string, modelid string, config map[string]interface{},) (serverexception *ServerException)

Delete a specified model from an AutoML analysis.

ParameterDescription
analysisidId of the AutoML Analysis.
modelidId of the model within the analysis.
config—

DeleteEmailSchedule#

go
DeleteEmailSchedule(scheduleid string) (serverexception *ServerException)

Delete the specified email schedule in the workspace.

ParameterDescription
scheduleidId for the email schedule.

DeleteFolder#

go
DeleteFolder(folderid string) (serverexception *ServerException)

Delete a specified folder in the workspace.

ParameterDescription
folderidThe id of the folder.

DeleteGroup#

go
DeleteGroup(groupid string) (serverexception *ServerException)

Delete a specified group.

ParameterDescription
groupidThe id of the group.

DeleteSlideshow#

go
DeleteSlideshow(slideid string) (serverexception *ServerException)

Delete a specified slideshow in the workspace.

ParameterDescription
slideidThe id of the slideshow.

DeleteTag#

go
DeleteTag(tagid string) (serverexception *ServerException)

Delete the specified tag from the workspace.

ParameterDescription
tagidId of the tag.

DeleteTrashView#

go
DeleteTrashView(viewid string, config map[string]interface{}) (serverexception *ServerException)

Delete the specified view permanently from trash.

ParameterDescription
viewidId of the view.
configContains any additional control configurations.

DeleteVariable#

go
DeleteVariable(variableid string) (serverexception *ServerException)

Delete the specified variable in the workspace.

ParameterDescription
variableidId of the variable.

DeployAutoMLAnalysis#

go
DeployAutoMLAnalysis(analysisid string, deploymentid string, config map[string]interface{},) (serverexception *ServerException)

Execute an AutoML analysis deployment.

ParameterDescription
analysisidId of the AutoML Analysis.
deploymentidId of the deployment.
config—

DisableDomainAccess#

go
DisableDomainAccess() (serverexception *ServerException)

Disable workspace from the specified white label domain.

DownloadWorkspaceBackup#

go
DownloadWorkspaceBackup(backupid string, filepath string, config map[string]interface{}) (serverexception *ServerException)

Download the specified workspace backup.

ParameterDescription
backupidId of the backup.
filepathPath of the file where the downloaded backup is to be stored.
configContains any additional control configurations.

EditQueryTable#

go
EditQueryTable(viewid, sqlquery string, config map[string]interface{}) (serverexception *ServerException)

Update the mentioned query table in the workspace.

ParameterDescription
viewidId of the query table to be updated.
sqlqueryNew SQL query to be updated.
configContains any additional control configurations.

EnableDomainAccess#

go
EnableDomainAccess() (serverexception *ServerException)

Enable workspace to the specified white label domain.

ExportAsTemplate#

go
ExportAsTemplate(viewids interface{}, filepath string, config map[string]interface{}) (serverexception *ServerException)

Export views as templates.

ParameterDescription
viewidsView ids to be exported as template.
filepathPath of the file where the data exported to be stored. ( Should be in 'atpt' format )
configContains the control configurations.

GetAdmins#

go
GetAdmins() (workspaceadmins interface{}, serverexception *ServerException)

Returns list of admins for the specified workspace.

Returns — Returns workspace admin list as interface.

GetAggregateFormulaDependents#

go
GetAggregateFormulaDependents(formulaid string) (dependents interface{}, serverexception *ServerException)

Returns list of all dependent views and formulas for the specified aggregate formula.

ParameterDescription
formulaidId of the aggregate formula.

Returns — Returns dependent list as interface.

GetAggregateFormulas#

go
GetAggregateFormulas(config map[string]interface{}) (formulas interface{}, serverexception *ServerException)

Returns list of all aggregate formulas for the specified workspace.

ParameterDescription
configContains any additional control configurations.

Returns — Aggregate formula list.

GetAggregateFormulaValue#

go
GetAggregateFormulaValue(formulaid string) (value string, serverexception *ServerException)

Returns the value of the aggregate formula.

ParameterDescription
formulaidId of the aggregate formula.

Returns — Aggregate formula value.

GetAlertConfiguration#

go
GetAlertConfiguration(alertid string) (alertconfig interface{}, serverexception *ServerException)

Returns the configuration of the specified data alert.

ParameterDescription
alertidId of the data alert.

Returns — Returns the data alert configuration as interface.

GetAlertEvents#

go
GetAlertEvents(alertid string, config map[string]interface{}) (alertevents interface{}, serverexception *ServerException)

Returns the execution events of the specified data alert.

ParameterDescription
alertidId of the data alert.
configContains any additional control configurations.

Returns — Returns the data alert events along with the page details as interface.

GetAlertsInWorkspace#

go
GetAlertsInWorkspace() (alerts interface{}, serverexception *ServerException)

Returns list of data alerts available in the specified workspace.

Returns — Returns the data alerts list as interface.

GetAutoMLAnalysis#

go
GetAutoMLAnalysis() (analysis interface{}, serverexception *ServerException)

Returns list of automl analysis for the specified workspace.

Returns — Returns AutoML analysis list as interface.

GetAutoMLAnalysisDetails#

go
GetAutoMLAnalysisDetails(analysisid string) (details interface{}, serverexception *ServerException)

Retrieve detailed information for a specific AutoML analysis.

ParameterDescription
analysisidId of the AutoML Analysis.

Returns — Returns AutoML analysis details as interface.

GetDashboardMetadata#

go
GetDashboardMetadata(dashboardid string, config map[string]interface{}) (dashboardconfig interface{}, serverexception *ServerException)

Returns the metadata of the specified dashboard.

ParameterDescription
dashboardidId of the dashboard.
configContains any additional control configurations.

Returns — Returns the dashboard configuration as interface.

GetDatasources#

go
GetDatasources() (datasourcelist interface{}, serverexception *ServerException)

Returns list of datasources for the specified workspace.

Returns — Returns Datasource list as interface.

GetDeploymentDetails#

go
GetDeploymentDetails(analysisid, modelid string) (deployments interface{}, serverexception *ServerException)

Returns deployment details available for an AutoML analysis model.

ParameterDescription
analysisidId of the AutoML Analysis.
modelidId of the AutoML Analysis Model.

Returns — Returns deployment details as interface.

GetEmailSchedules#

go
GetEmailSchedules() (emailschedules interface{}, serverexception *ServerException)

Returns — List of email schedules.

GetFolders#

go
GetFolders() (folders interface{}, serverexception *ServerException)

Returns list of all accessible folders for the specified workspace.

Returns — Returns folder list as interface.

GetGroupDetails#

go
GetGroupDetails(groupid string) (groupinfo interface{}, serverexception *ServerException)

Returns details of the specified group.

ParameterDescription
groupidThe id of the group.

Returns — Returns group detail as interface.

GetGroups#

go
GetGroups() (groups interface{}, serverexception *ServerException)

Returns list of groups for the specified workspace.

Returns — Returns the list of groups as interface.

GetLinkableWorkspaces#

go
GetLinkableWorkspaces() (orgs interface{}, serverexception *ServerException)

Returns list of organizations and workspaces that can be linked to the specified master workspace.

Returns — Returns the organizations with their linkable workspaces as interface.

GetLinkedWorkspaces#

go
GetLinkedWorkspaces() (linkedworkspaces interface{}, serverexception *ServerException)

Returns list of workspaces linked to the specified master workspace.

Returns — Returns the linked workspaces list as interface.

GetLinkedWorkspaceSyncDetails#

go
GetLinkedWorkspaceSyncDetails(sandboxids interface{}, config map[string]interface{}) (workspaces interface{}, serverexception *ServerException)

Returns the sync details of the specified linked workspaces.

ParameterDescription
sandboxidsIds of the linked workspaces for which the sync details are fetched.
configContains any additional control configurations.

Returns — Returns the linked workspace sync details as interface.

GetQueryTableDetails#

go
GetQueryTableDetails(querytableid string) (details interface{}, serverexception *ServerException)

Returns details of the specified query table.

ParameterDescription
querytableidId of the query table.

Returns — Returns query table details as interface.

GetQueryTables#

go
GetQueryTables(config map[string]interface{}) (querytables interface{}, serverexception *ServerException)

Returns list of all query tables for the specified workspace.

ParameterDescription
configContains any additional control configurations.

Returns — Returns query table list as interface.

GetReportMetadata#

go
GetReportMetadata(viewid string) (reportconfig interface{}, serverexception *ServerException)

Returns the metadata of the specified report.

ParameterDescription
viewidId of the report.

Returns — Returns the report configuration as interface.

GetSecretKey#

go
GetSecretKey(config map[string]interface{}) (secretkey string, serverexception *ServerException)

Returns the secret key of the specified workspace.

ParameterDescription
configContains any additional control configurations.

Returns — Returns workspace secret key.

GetSharedDetailsForViews#

go
GetSharedDetailsForViews(viewids interface{}) (shareinfo interface{}, serverexception *ServerException)

Returns shared details of the specified views.

ParameterDescription
viewidsView ids for which sharing details are required.

Returns — Returns share details as interface.

GetShareInfo#

go
GetShareInfo() (shareinfo interface{}, serverexception *ServerException)

Returns shared details of the specified workspace.

Returns — Returns ShareInfo as interface.

GetSlideshowDetails#

go
GetSlideshowDetails(slideid string) (slideinfo interface{}, serverexception *ServerException)

Returns details of the specified slideshow.

ParameterDescription
slideidThe id of the slideshow.

Returns — Returns the slideshow details as interface.

GetSlideshows#

go
GetSlideshows() (slideshows interface{}, serverexception *ServerException)

Create a group in the specified workspace.

Returns — Returns the list of slideshows as interface.

GetSlideshowUrl#

go
GetSlideshowUrl(slideid string, config map[string]interface{}) (slideurl string, serverexception *ServerException)

Returns slide URL to access the specified slideshow.

ParameterDescription
slideidThe id of the slideshow.
configContains the control configurations.

Returns — Returns the slideshow URL.

GetTaggedViews#

go
GetTaggedViews(tagid string) (views interface{}, serverexception *ServerException)

Returns the list of views associated with the specified tag.

ParameterDescription
tagidId of the tag.

Returns — Returns view list as interface.

GetTags#

go
GetTags() (tags interface{}, serverexception *ServerException)

Returns list of all tags for the specified workspace.

Returns — Returns tags list as interface.

GetTrashViews#

go
GetTrashViews() (views interface{}, serverexception *ServerException)

Returns — Returns view list as interface.

GetVariableDetails#

go
GetVariableDetails(variableid string) (variableinfo interface{}, serverexception *ServerException)

Returns details of the specified variable.

ParameterDescription
variableidId of the variable.

Returns — Returns the variable details as interface.

GetVariables#

go
GetVariables() (variablelist interface{}, serverexception *ServerException)

Returns list of variables for the specified workspace.

Returns — Returns variable list as interface.

GetViews#

go
GetViews(config map[string]interface{}) (views interface{}, serverexception *ServerException)

Returns list of all accessible views for the specified workspace.

ParameterDescription
configContains any additional control configurations.

Returns — Returns view list as interface.

GetWorkspaceAccessRestrictions#

go
GetWorkspaceAccessRestrictions() (accessrestrictions interface{}, serverexception *ServerException)

Returns the access restriction settings configured for the specified workspace.

Returns — Returns the workspace access restriction settings as interface.

GetWorkspaceBackups#

go
GetWorkspaceBackups() (backups interface{}, serverexception *ServerException)

Returns the backup configuration and the list of backups available for the specified workspace.

Returns — Returns the workspace backup details as interface.

GetWorkspaceBackupStatus#

go
GetWorkspaceBackupStatus(backupid string) (backupstatus interface{}, serverexception *ServerException)

Returns the status of the specified workspace backup.

ParameterDescription
backupidId of the backup.

Returns — Returns the backup status details as interface.

GetWorkspaceDetails#

go
GetWorkspaceDetails(config map[string]interface{}) (workspaceDetails map[string]interface{}, serverexception *ServerException)

Returns details of the specified workspace.

ParameterDescription
configContains any additional control configurations.

Returns — Returns workspace details as interface.

GetWorkspaceLinkingCompatibility#

go
GetWorkspaceLinkingCompatibility(clients interface{}, config map[string]interface{}) (compatibility interface{}, serverexception *ServerException)

Returns the linking compatibility details for the specified client workspaces.

ParameterDescription
clientsContains the client workspaces to be verified for linking compatibility.
configContains any additional control configurations.

Returns — Returns the client workspace compatibility details as interface.

GetWorkspaceRestoreStatus#

go
GetWorkspaceRestoreStatus(restoreid string) (restorestatus interface{}, serverexception *ServerException)

Returns the status of the specified workspace restore.

ParameterDescription
restoreidId of the restore.

Returns — Returns the restore status details as interface.

GetWorkspaceUsers#

go
GetWorkspaceUsers() (users interface{}, serverexception *ServerException)

Returns list of users for the specified workspace.

Returns — Returns the list of users as interface.

LinkWorkspaces#

go
LinkWorkspaces(clients interface{}, config map[string]interface{}) (serverexception *ServerException)

Link the specified client workspaces to the master workspace.

ParameterDescription
clientsContains the client workspaces to be linked with the master workspace.
configContains any additional control configurations.

MakeDefaultFolder#

go
MakeDefaultFolder(folderid string) (serverexception *ServerException)

Make the specified folder as default.

ParameterDescription
folderidId of the folder.

MoveViewsToFolder#

go
MoveViewsToFolder(folderid string, viewids interface{}, config map[string]interface{}) (serverexception *ServerException)

Move views to the mentioned folder.

ParameterDescription
folderidId of the folder.
viewidsView ids to be moved.
configContains any additional control configurations.

RemoveAdmins#

go
RemoveAdmins(emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Remove admins from the specified workspace.

ParameterDescription
emailidsThe email address of the admin users to be removed.
configContains any additional control configurations.

RemoveDefault#

go
RemoveDefault() (serverexception *ServerException)

Remove a specified workspace from default.

RemoveFavorite#

go
RemoveFavorite() (serverexception *ServerException)

Remove a specified workspace from favorite.

RemoveGroupMembers#

go
RemoveGroupMembers(groupid string, emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Remove users from the specified group.

ParameterDescription
groupidThe id of the group.
emailidsThe email address of the users to be removed from the group.
configContains any additional control configurations.

RemoveShare#

go
RemoveShare(viewids, emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Remove shared views for the specified users.

ParameterDescription
viewidsView ids whose sharing needs to be removed.
emailidsThe email address of the users to whom the sharing need to be removed.
configContains any additional control configurations.

RemoveTagFromViews#

go
RemoveTagFromViews(tagid string, viewids interface{}, dissociateAll bool, config map[string]interface{}) (serverexception *ServerException)

Removes the specified tag from multiple views in the workspace.

ParameterDescription
tagidId of the tag.
viewidsView ids to be dissociated. Pass nil when dissociateAll is true.
dissociateAllTo dissociate the tag from all associated views.
configContains any additional control configurations.

RemoveWorkspaceUsers#

go
RemoveWorkspaceUsers(emailids interface{}, config map[string]interface{}) (serverexception *ServerException)

Remove users from the specified workspace.

ParameterDescription
emailidsThe email address of the users to be removed.
configContains any additional control configurations.

Rename#

go
Rename(workspacename string, config map[string]interface{}) (serverexception *ServerException)

Rename a specified workspace in the organization.

ParameterDescription
workspacenameNew name of the workspace.
configContains any additional control configurations.

RenameFolder#

go
RenameFolder(folderid, folderename string, config map[string]interface{}) (serverexception *ServerException)

Rename a specified folder in the workspace.

ParameterDescription
folderidThe id of the folder.
folderenameThe new name of the folder.
configContains any additional control configurations.

RenameGroup#

go
RenameGroup(groupid, groupname string, config map[string]interface{}) (serverexception *ServerException)

Rename a specified group.

ParameterDescription
groupidThe id of the group.
groupnameThe new name of the group.
config—

RestoreTrashView#

go
RestoreTrashView(viewid string, config map[string]interface{}) (serverexception *ServerException)

Restore the specified view from trash.

ParameterDescription
viewidId of the view.
configContains any additional control configurations.

RestoreWorkspaceFromBackup#

go
RestoreWorkspaceFromBackup(backupid string, confirmrestore bool, config map[string]interface{}) (restoredetails interface{}, serverexception *ServerException)

Restore the specified workspace from the given backup.

ParameterDescription
backupidId of the backup.
confirmrestorePass true to confirm that the existing workspace data can be overwritten.
configContains any additional control configurations.

Returns — Returns the triggered restore details as interface.

RunAlert#

go
RunAlert(alertid string, config map[string]interface{}) (serverexception *ServerException)

Execute the specified data alert immediately.

ParameterDescription
alertidId of the data alert.
configContains any additional control configurations.

ShareViews#

go
ShareViews(viewids, emailids interface{}, permissions map[string]bool, config map[string]interface{}) (serverexception *ServerException)

Share views to the specified users.

ParameterDescription
viewidsView ids which to be shared.
emailidsThe email address of the users to whom the views need to be shared.
permissionsContains permission details.
configContains any additional control configurations.

SyncData#

go
SyncData(datasourceid string, config map[string]interface{}) (serverexception *ServerException)

Make the specified folder as default.

ParameterDescription
datasourceidId of the datasource.
configContains the control configurations.

SyncLinkedWorkspaces#

go
SyncLinkedWorkspaces(scope string, config map[string]interface{}) (serverexception *ServerException)

Sync the metadata of the master workspace to its linked client workspaces.

ParameterDescription
scopeScope of the sync operation.
configContains any additional control configurations.

TriggerEmailSchedule#

go
TriggerEmailSchedule(scheduleid string) (serverexception *ServerException)

Trigger configured email schedules instantly.

ParameterDescription
scheduleidId for the email schedule.

UnlinkWorkspaces#

go
UnlinkWorkspaces(scope string, config map[string]interface{}) (serverexception *ServerException)

Unlink the client workspaces from the specified master workspace.

ParameterDescription
scopeScope of the unlink operation.
configContains any additional control configurations.

UpdateAlert#

go
UpdateAlert(alertid string, alertname string, scheduledetails map[string]interface{}, rules interface{}, config map[string]interface{}) (serverexception *ServerException)

Update the specified data alert in the workspace.

ParameterDescription
alertidId of the data alert.
alertnameName of the data alert.
scheduledetailsContains the schedule configurations of the data alert.
rulesContains the rules to be evaluated by the data alert.
configContains any additional control configurations.

UpdateDashboard#

go
UpdateDashboard(dashboardid string, config map[string]interface{}) (serverexception *ServerException)

Update the specified dashboard in the workspace.

ParameterDescription
dashboardidId of the dashboard.
configContains the dashboard configurations to be updated.

UpdateDatasourceConnection#

go
UpdateDatasourceConnection(datasourceid string, config map[string]interface{}) (serverexception *ServerException)

Update connection details for the specified datasource.

ParameterDescription
datasourceidId of the datasource.
configContains the control configurations.

UpdateEmailSchedule#

go
UpdateEmailSchedule(scheduleid string, config map[string]interface{}) (newscheduleid string, serverexception *ServerException)

Update configurations of the specified email schedule in the workspace.

ParameterDescription
scheduleidId for the email schedule.
configContains the control configurations.

Returns — Returns the updated email schedule id value.

UpdateReport#

go
UpdateReport(viewid string, config map[string]interface{}) (serverexception *ServerException)

Update the design and configuration of the specified report.

ParameterDescription
viewidId for the view.
configContains the control configurations.

UpdateSlideshow#

go
UpdateSlideshow(slideid string, config map[string]interface{}) (serverexception *ServerException)

Update details of the specified slideshow.

ParameterDescription
slideidThe id of the slideshow.
configContains the control configurations.

UpdateTag#

go
UpdateTag(tagid string, config map[string]interface{}) (serverexception *ServerException)

Update details of the specified tag in the workspace.

ParameterDescription
tagidId of the tag.
configContains the control configurations.

UpdateVariable#

go
UpdateVariable(variableid string, variablename string, variabledatatype int, variabletype int, config map[string]interface{}) (serverexception *ServerException)

Update details of the specified variable in the workspace.

ParameterDescription
variableidId of the variable.
variablenameNew name for the variable.
variabledatatypeNew datatype for the variable.
variabletypeNew type for the variable.
configContains the control configurations.

UpdateWorkspaceAccessRestrictions#

go
UpdateWorkspaceAccessRestrictions(config map[string]interface{}) (serverexception *ServerException)

Update the access restriction settings of the specified workspace.

ParameterDescription
configContains the access restriction configurations to be updated.
  • Errors — the failure envelope and codes worth branching on.
  • Limits — throttles and quotas that apply to these calls.
Zoho Analytics Go SDK · REST API v2 Generated 2026-10-27