B U S I N E S S A N A L Y S T 10.2 R E S T R E P O S I T O R Y U T I L I T Y
Rename Workspace Endpoint
Renames an existing workspace.
Availability: Business Analyst Server.
http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/RenameWorkspace/execute
Parameters
WorkspaceName (required) |
Workspace name. Type string. |
NewWorkspaceName (required) |
New 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 source workspace is absent or the target workspace already exists, this method has no effect.
Example Usage
The example below renames a workspace of Business Analyst Server Repository. In order to demonstrate this method, a new workspace is created and then renamed.
{ "results": [ { "paramName":"OutputStatus", "dataType":"GPBoolean", "value":"true" } ], "messages": [ ] }
In attempt to rename a workspace to already existing workspace, the false value is returned:
{ "results": [ { "paramName":"OutputStatus", "dataType":"GPBoolean", "value":"false" } ], "messages": [ ] }
See Also