Objective

It allows to create a new Workspace in the DM library. It doesn’t allow the creation of a Workspace with the same name as an existing Workspace. The new Workspace is created for the user whose credentials are provided. DST must be provided.

Note: CreateWorkspaceDST method can’t create a new Workspace for other users in the DM library.

Parameters

ParameterDescriptionType
libraryeDOCS libraryString
userUser nameString
passwordUser passwordString
workspaceNameName for the Workspace to be created.String
workspaceDescriptionDescription of the Workspace to be created.String
dbSchemaDatabase schema. By default is set to “DOCSADM” if an empty string is passed.String
clientOptional parameter for the client codeString
projectOptional parameter for the project codeString

Rest Invoke

  • http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
  • UriTemplate:
    • “/CreateWorkspace/?library={library}&user={user}&password={password}&workspaceName={workspaceName}&workspaceDescription={workspaceDescription}&dbSchema={dbSchema}&client={client}&project={project}”
    • “/CreateWorkspaceDST/?library={library}&user={user}&dst={dst}&workspaceName={workspaceName}&workspaceDescription={workspaceDescription}&dbSchema={dbSchema}&client={client}&project={project}”

Example

http://localhost:8732/GSService/xml/CreateWorkspace/?library=DMTESTLEGAL&user=admin&password=owc123&workspaceName=prueba&workspaceDescription=workspacePrueba&dbSchema=DOCSADM

The method returns 0 if the Workspace has been created or an error.

DST Example

http://localhost:8732/GSService/xml/CreateWorkSpaceDST/?library=DMTESTLEGAL&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&workspaceName=prueba&workspaceDescription=workspacePrueba&dbSchema=DOCSADM

Error

Check the edocs.log file if errors arise in the workspaces’ creation process.