FRAMES | NO FRAMES

 

B U S I N E S S   A N A L Y S T   10.1   R E S T   R E P O S I T O R Y   U T I L I T Y

Create Workspace Endpoint

Creates a new workspace.

 

Availability: Business Analyst Server.

 

URL Example

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/CreateWorkspace/execute

Parameters

Parameter

Description

WorkspaceName (required)

Workspace name. Type string.

f (optional)

Response format. Type string. Available formats: HTML, JSON, PJSON, XML.

Default: HTML.

token

Authentication token. This parameter is required if your Business Analyst Server is secured. Type string.

Returns

Variable of type boolean

Remarks

If the workspace already exists, this endpoint has no effect.

Example Usage

The example below creates a new workspace in the Business Analyst Repository.

 

Request

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/CreateWorkspace/execute?
WorkspaceName=workspace_CreateWorkspace&
f=PJSON

 

Response

{
  "results":
  [
    {
      "paramName":"OutputStatus",
      "dataType":"GPBoolean",
      "value":"true"
    }
  ],
  "messages":
  [
  ]
}

 

In attempt to create an already existing workspace, the false value is returned:

 

Response

{
"results":
  [
    {
    "paramName":"OutputStatus",
    "dataType":"GPBoolean",
    "value":"false"
    }
  ],
"messages":
  [
  ]
}

 

See Also

Business Analyst Server REST Reference