Example usage
The following is a sample ArcGIS Online request URL used to access the workspaces resource:
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/collaborations/1169d622be9d49c58d53dcfc4cd85134/workspaces?f=pjsonThe following is a sample ArcGIS Enterprise request URL used to access the workspaces resource:
https://organization.example.com/<context>/sharing/rest/portals/0123456789ABCDEF/collaborations/1169d622be9d49c58d53dcfc4cd85134/workspaces?f=pjson&sortField=name&sortOrder=descDescription
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
| Parameter | Details |
|---|---|
| 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 Example |
| Introduced at ArcGIS Enterprise 12.2. The maximum number of results to be included in the result set response. The default value is Example |
| Introduced at ArcGIS Enterprise 12.2. The field to sort by. Sort field names are not case sensitive. Values: |
| Introduced at ArcGIS Enterprise 12.2. Describes whether the results are returned in ascending or descending order. The default is ascending. Values: |
| 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 Example: |
| The response format. The default value is Values: |
JSON Response example
{
"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, //New with ArcGIS Online's March 2021 release & ArcGIS Enterprise 10.9
"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": []
}
]
}