Get All Workspaces

Overview

Get the workspaces from the end system that the integration user has access to.

Note: Return the empty list if the end system does not have the Workspaces' structure.

API URI

This is the URI OpsHub will execute to call this API:

GET: /mbse/api/1.0/workspaces?
    startIndex=<startIndex>
    maxResults=<maxResults>

URI Parameters

Name
In
Required
Type
Description

startIndex

Query

True

Integer

Start index from which list of workspaces should be returned

maxResults

Query

True

Integer

Maximum number of workspaces to be returned by custom connector, starting from startIndex

Response Payload

[
  {
    "id": "unique identifier",
    "name": "project name",
    "parentWorkSpaceId": "parent workspace id"
  }
]
Name
Type
Required
Description

id

Integer or String

True

Id or internal name of the workspace

name

String

True

Display name of the workspace

parentWorkSpaceId

String

False

If end system supports workspace hierarchy, set the id or internal name of the direct parent workspace

Examples

Flat workspace list

Example 1:

Example 2

Workspace hierarchy

Last updated