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

Copy Project Endpoint

Creates a copy of the project with another name.

 

Availability: Business Analyst Server.

 

URL Example

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

Parameters

Parameter

Description

WorkspaceName (required)

Workspace name. Type string.

ProjectName (required)

Project name. Type string.

NewProjectName (required)

New project name. Type string.

DestinationWorkspaceName (optional)

Destination workspace name. If this parameter is missing, the destination workspace will be the source workspace. Type string. Available with Business Analyst Server 10.0 SP2.

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 project is absent, this endpoint returns an error. If the target project already exists, this endpoint has no effect.

Example Usage

The example below creates a copy of a project in the Business Analyst Repository.

 

Request

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/CopyProject/execute?
WorkspaceName=Default Workspace&
ProjectName=Default Project&
NewProjectName=project_copyProject&
f=PJSON

 

Response

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

 

In attempt to copy a project to an already existing destination project, the false value is returned:

 

Response

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

 

See Also

Business Analyst Server REST Reference