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
Copy Project Endpoint
Creates a copy of the project with another name.
Availability: Business Analyst Server.
http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/CopyProject/execute
Parameters
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.
{ "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:
{ "results": [ { "paramName":"OutputStatus", "dataType":"GPBoolean", "value":"false" } ], "messages": [ ] }
See Also