FRAMES | NO FRAMES

 

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

Create Project Endpoint

Creates a new project.

 

Availability: Business Analyst Server.

 

URL Example

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

Parameters

Parameter

Description

WorkspaceName (required)

Workspace name. Type string.

ProjectName (required)

New project 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 project already exists, this endpoint returns an error.

Example Usage

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

 

request

http://localhost:6080/arcgis/rest/services/DefaultMap/MapServer/exts/BAServer/CreateProject/execute?
WorkspaceName=Default Workspace&
ProjectName=project_CreateProject&
f=PJSON

 

Response

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

 

In attempt to create a project already existing in the repository, an error message is returned:

 

Error Response

{
  "error":
  {
    "code": "-2147467259",
    "message": "Failed to create project.",
    "details":
    [
      "Error code: 0x80004005\n...\n"
    ]
  }
  "messages":
  [
  ]
}

 

NOTE: The response has been abbreviated where "..." is noted.

 

See Also

Business Analyst Server REST Reference