URL:
https://[root]/portals/[portalID]/collaborations/[collaborationID]/workspaces
Methods:
GET
Child Resources:
Workspace
Required Capability:
Administrator
Version Introduced:
10.5

Example usage

The following is a sample ArcGIS Online request URL used to access the workspaces resource:

Use dark colors for code blocksCopy
1
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/collaborations/1169d622be9d49c58d53dcfc4cd85134/workspaces?f=pjson

The following is a sample ArcGIS Enterprise request URL used to access the workspaces resource:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/sharing/rest/portals/0123456789ABCDEF/collaborations/1169d622be9d49c58d53dcfc4cd85134/workspaces?f=pjson&sortField=name&sortOrder=desc

Description

The workspaces resource lists all the workspaces in a given collaboration. A workspace is a virtual space in the collaboration to which each participating portal is either sending or receiving content. Workspaces can only be created by the collaboration owner. To create a new workspace use the Add Workspace operation.

Request parameters

ParameterDetails

start

Introduced at ArcGIS Enterprise 12.2. The number of the first entry in the result set response. The index number is 1-based. The default value of start is 1.

Example

Use dark colors for code blocksCopy
1
start=5

num

Introduced at ArcGIS Enterprise 12.2. The maximum number of results to be included in the result set response. The default value is 10. Note that the actual number of returned results may be less than the value specified for num. This happens when the number of results remaining after start is less than the num value.

Example

Use dark colors for code blocksCopy
1
2
//Returns a max of 50 results in the response
num=10

sortField

Introduced at ArcGIS Enterprise 12.2. The field to sort by. Sort field names are not case sensitive.

Values: name | description | created | modified | lastSyncFailureCount | invitationsPendingCount

sortOrder

Introduced at ArcGIS Enterprise 12.2. Describes whether the results are returned in ascending or descending order. The default is ascending.

Values: asc | desc

filter

Introduced at ArcGIS Enterprise 12.2. Structured filtering through specifying a field name followed by a colon and the term you are looking for with double quotation marks. It is designed to allow passing in application level filters based on its context. Specified field value should be an exact keyword match of the value interested, partially match the filter keyword will fail the matching and not return meaningful results.

This parameter supports filtering collaboration workspaces by their name and description properties.

Example:

Use dark colors for code blocksCopy
1
filter=name:"Planning"

f

The response format. The default value is html.

Values: html | json | pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  "total": 1,
  "start": 1,
  "num": 25,
  "nextStart": -1,
  "workspaces": [
    {
      "id": "ba18f61f703741599dc8d888984c0da1",
      "name": "MPlanningRedlands",
      "description": "Municipal planning",
      "collaborationId": "6eb9d44f520747468926620047e79919",
      "config": {
        "maxItemSizeInMB": 512,
        "maxReplicationPackageSizeInMB": 1024,
        "copyByRefIfCopyFail": true,
        "bidirectionalSyncCapable": true
      },
      "created": 1602454347620,
      "modified": 1602454347620,
      "lastSyncSuccess": -1,
      "lastSyncFailureCount": 0,
      "participantGroupLinksCount": 1
      "bidirectionalSyncCapable": false,
      "participantGroupLinks": [
        {
          "portalId": "cd16dea4-9c99-4662-b337-9734843a65a9",
          "portalGroupId": "845cc726affd46a3a0431635f7861364",
          "portalGroupName": "MPlanningRedlands",
          "config": {
            "enableRealtimeSync": true,
            "copyFeatureServiceData": true,
            "enableFeatureServiceBidirectionalSync": false
          },
          "accessMode": "sendAndReceive",
          "canSyncWorkspace": true,
          "isServiceProxyEnabled": false
        },
        {
          "portalId": "wTpiCNYUNGm0YDTX",
          "accessMode": "sendAndReceive",
          "config": {
            "copyFeatureServiceData": true,
            "enableFeatureServiceBidirectionalSync": true
          },
          "isServiceProxyEnabled": false
        }
      ],
      "participantsWithoutGroupLinks": []
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.