Number of APIs: 50
This collection uses collection variables (see tab Variables). There are already some defined but with empty values. These variables depend on your environment and must be entered/adapted before executing the examples. You can create in the Developer Console an App for your tenant. If you extend the Core Content App there are two sets of OAuth clients created, called Public Client Keys and Confidential Client Keys. For this collection you need the later, Confidential Client Keys to set the value for clientid and clientsecret You usually don't need to adapt the following variables. * Leave it, as it is. The right value is automatically detected by request Preparation/Current subscription. ** Usually you can leave the default value *** Is retrieved via request Preparation/OAuth The whole collections is build with the principle that the requests are executed in order. Some can be executed independently (except authentication) others depend on one or more previous requests.
These previous requests retrieve information from the response and store it in collection variables. These variables are referenced by subsequent requests i.e. their name enclosed by double curly brackets e.g. {{folder_id}}. All requests in the Preparation folder are used to retrieve or create data needed by the subsequent requests, especially the authentication token. These calls do not use Workspace API but CMS resp. OTDS API calls. The last folder is the counterpart to it. It contains methods to remove the created data and also to delete the related collection variables. In contraction to Preparation folder there are Workspace API request to delete workspace types and templates. The last call in the folder cleans up the remaining collection variables. So all temporary variables are removed and only the variables in the above table remain.Workspace API examples usage
Variable
Description
appconfclientid
Client Id of your Confidential Client Keys
appconfclientsecret
Client Secret of your Confidential Client Keys
tenantsvcaccuid
Tenant service account user (usually mail address)
tenantsvcaccpwd
Corresponding password to tenantsvcaccuid
tenant-id
Id of your tenant
Variable
Description
subscriptionnamespaceprefix
Prefix of the subscription namespace*
subscriptionnamespacename
Name of the subscription namespace*
api_host
Central host to access OT2 APIs**
token-endpoint
URL of the OAuth2 authentication service**
cms-service-endpoint
URL of the Content Metadata service**
workspace-service-endpoint
URL of the Workspace service**
access_token
OAuth Access Token***
POST {{token-endpoint}}/oauth2/token
GET {{cms-service-endpoint}}/subscriptions/current-subscription
GET {{cms-service-endpoint}}/subscription-users
GET {{cms-service-endpoint}}/user-aliases
GET {{cms-service-endpoint}}/instances/folder/cms_folder/subscription-root
GET {{cms-service-endpoint}}/instances/folder/cms_folder/{{subscription-root-id}}/items?sortby=name asc
POST {{cms-service-endpoint}}/instances/folder/ccmapp_enterprise_volume/{{enterprise_volume.id}}/items
POST {{cms-service-endpoint}}/trait-definitions
POST {{workspace-service-endpoint}}/api/v1/workspace/types
PATCH {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee}}
POST {{workspace-service-endpoint}}/api/v1/workspace/types
PUT {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}
PATCH {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}
GET {{workspace-service-endpoint}}/api/v1/workspace/types?expandAll=true&page=0&size=1000
GET {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}
POST {{workspace-service-endpoint}}/api/v1/workspace/types
PUT {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_attr}}
PATCH {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_attr}}
DELETE {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_attr}}
POST {{workspace-service-endpoint}}/api/v1/workspace/types
PUT {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_pick}}
DELETE {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_pick}}
POST {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee}}/templates
POST {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}/templates
PATCH {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee}}/templates/{{workspace_template_employee_na}}
PATCH {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}/templates/{{workspace_template_employee_eu}}
GET {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}/templates/{{workspace_template_employee_eu}}
GET {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee}}/templates
POST {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee}}/templates/{{workspace_template_employee_na}}/instances
POST {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}/templates/{{workspace_template_employee_eu}}/instances
GET {{workspace-service-endpoint}}/api/v1/workspace/instances/{{kristen_instance.root_folder.id}}/roles
POST {{workspace-service-endpoint}}/api/v1/workspace/instances/roles/{{role.employee.id}}/members
GET {{workspace-service-endpoint}}/api/v1/workspace/instances/roles/{{role.employee.id}}/members/{{member_id}}
DELETE {{workspace-service-endpoint}}/api/v1/workspace/instances/roles/{{role.employee.id}}/members/{{member_id}}
PUT {{workspace-service-endpoint}}/api/v1/workspace/instances/{{kristen_instance.root_folder.id}}
PATCH {{workspace-service-endpoint}}/api/v1/workspace/instances/{{kristen_instance.root_folder.id}}
GET {{workspace-service-endpoint}}/api/v1/workspace/instances/{{kristen_instance.root_folder.id}}/acl
PATCH {{workspace-service-endpoint}}/api/v1/workspace/instances/{{kristen_instance.root_folder.id}}/acl
PUT {{workspace-service-endpoint}}/api/v1/workspace/instances/{{kristen_instance.root_folder.id}}/acl
GET {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}/instances?include-types=true
GET {{workspace-service-endpoint}}/api/v1/workspace/folders/{{employee_folder.id}}/locations
DELETE {{cms-service-endpoint}}/instances/case/{{case_model_employee_na}}/{{kate_instance.case_id}}?recursive=true
DELETE {{cms-service-endpoint}}/instances/case/{{case_model_employee_eu}}/{{kristen_instance.case_id}}?recursive=true
DELETE {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee}}/templates/{{workspace_template_employee_na}}
DELETE {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}/templates/{{workspace_template_employee_eu}}
DELETE {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee}}
DELETE {{workspace-service-endpoint}}/api/v1/workspace/types/{{workspace_type_employee_l10n}}
DELETE {{cms-service-endpoint}}/trait-definitions/{{subscription_namespace_prefix}}_responsible_person
DELETE {{cms-service-endpoint}}/instances/folder/cms_folder/{{employee_folder.id}}
GET {{workspace-service-endpoint}}/api/v1/workspace/types?expandAll=true&page=0&size=1000
ENDPOINTS