All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| createWorkspace | POST /organizations/{organization_id}/workspaces | Create a new workspace |
| createWorkspaceAccessControl | POST /organizations/{organization_id}/workspaces/{workspace_id}/security/access | Add a control access to the Workspace |
| createWorkspaceFile | POST /organizations/{organization_id}/workspaces/{workspace_id}/files | Upload a file for the Workspace |
| deleteWorkspace | DELETE /organizations/{organization_id}/workspaces/{workspace_id} | Delete a workspace |
| deleteWorkspaceAccessControl | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Remove the specified access from the given Workspace |
| deleteWorkspaceFile | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/files/delete | Delete a workspace file |
| deleteWorkspaceFiles | DELETE /organizations/{organization_id}/workspaces/{workspace_id}/files | Delete all Workspace files |
| getWorkspace | GET /organizations/{organization_id}/workspaces/{workspace_id} | Get the details of a workspace |
| getWorkspaceAccessControl | GET /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Get a control access for the Workspace |
| getWorkspaceFile | GET /organizations/{organization_id}/workspaces/{workspace_id}/files/download | Download the Workspace File specified |
| getWorkspaceSecurity | GET /organizations/{organization_id}/workspaces/{workspace_id}/security | Get the Workspace security information |
| listWorkspaceFiles | GET /organizations/{organization_id}/workspaces/{workspace_id}/files | List all Workspace files |
| listWorkspaceRolePermissions | GET /organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role} | Get the Workspace permission by given role |
| listWorkspaceSecurityUsers | GET /organizations/{organization_id}/workspaces/{workspace_id}/security/users | Get the Workspace security users list |
| listWorkspaces | GET /organizations/{organization_id}/workspaces | List all Workspaces |
| updateWorkspace | PATCH /organizations/{organization_id}/workspaces/{workspace_id} | Update a workspace |
| updateWorkspaceAccessControl | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Update the specified access to User for a Workspace |
| updateWorkspaceDefaultSecurity | PATCH /organizations/{organization_id}/workspaces/{workspace_id}/security/default | Update the Workspace default security |
Workspace createWorkspace(workspaceCreateRequest)
Create a new workspace.
import {
WorkspaceApi,
Configuration,
WorkspaceCreateRequest
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceCreateRequest: WorkspaceCreateRequest; //The Workspace to create
const { status, data } = await apiInstance.createWorkspace(
organizationId,
workspaceCreateRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| workspaceCreateRequest | WorkspaceCreateRequest | The Workspace to create | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
Workspace
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The workspace details | - |
| 400 | Bad request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceAccessControl createWorkspaceAccessControl(workspaceAccessControl)
Grant access to a workspace for a user or group.
import {
WorkspaceApi,
Configuration,
WorkspaceAccessControl
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let workspaceAccessControl: WorkspaceAccessControl; //The new Workspace security access to add.
const { status, data } = await apiInstance.createWorkspaceAccessControl(
organizationId,
workspaceId,
workspaceAccessControl
);| Name | Type | Description | Notes |
|---|---|---|---|
| workspaceAccessControl | WorkspaceAccessControl | The new Workspace security access to add. | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
WorkspaceAccessControl
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The Workspace access | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceFile createWorkspaceFile()
Upload a file to workspace storage. Use 'destination' to specify path, 'overwrite' to replace existing files.
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let file: File; //The file to upload (default to undefined)
let overwrite: boolean; //Whether to overwrite an existing file (optional) (default to false)
let destination: string; //Destination path. Must end with a \\\'/\\\' if specifying a folder. Note that paths may or may not start with a \\\'/\\\', but they are always treated as relative to the Workspace root location. (optional) (default to undefined)
const { status, data } = await apiInstance.createWorkspaceFile(
organizationId,
workspaceId,
file,
overwrite,
destination
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
| file | [File] | The file to upload | defaults to undefined |
| overwrite | [boolean] | Whether to overwrite an existing file | (optional) defaults to false |
| destination | [string] | Destination path. Must end with a \'/\' if specifying a folder. Note that paths may or may not start with a \'/\', but they are always treated as relative to the Workspace root location. | (optional) defaults to undefined |
WorkspaceFile
- Content-Type: multipart/form-data
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The file resource details | - |
| 400 | Bad request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWorkspace()
Permanently delete a workspace.
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
const { status, data } = await apiInstance.deleteWorkspace(
organizationId,
workspaceId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | The workspace details | - |
| 400 | Bad request | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWorkspaceAccessControl()
Remove a user's access to a workspace. Cannot remove the last administrator.
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)
const { status, data } = await apiInstance.deleteWorkspaceAccessControl(
organizationId,
workspaceId,
identityId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
| identityId | [string] | The User identifier | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Request succeeded | - |
| 404 | The Workspace or the user specified is unknown or you don't have access to them | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWorkspaceFile()
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let fileName: string; //The file name (default to undefined)
const { status, data } = await apiInstance.deleteWorkspaceFile(
organizationId,
workspaceId,
fileName
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
| fileName | [string] | The file name | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Request succeeded | - |
| 404 | The Workspace or the file specified is unknown or you don't have access to them | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteWorkspaceFiles()
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
const { status, data } = await apiInstance.deleteWorkspaceFiles(
organizationId,
workspaceId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | Request succeeded | - |
| 404 | The Workspace specified is unknown or you don't have access to them | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace getWorkspace()
Retrieve detailed information about a workspace.
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
const { status, data } = await apiInstance.getWorkspace(
organizationId,
workspaceId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
Workspace
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Workspace details | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceAccessControl getWorkspaceAccessControl()
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)
const { status, data } = await apiInstance.getWorkspaceAccessControl(
organizationId,
workspaceId,
identityId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
| identityId | [string] | The User identifier | defaults to undefined |
WorkspaceAccessControl
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Workspace access | - |
| 404 | The Workspace or user specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
File getWorkspaceFile()
Download a specific file from workspace storage. Returns file as binary stream.
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let fileName: string; //The file name (default to undefined)
const { status, data } = await apiInstance.getWorkspaceFile(
organizationId,
workspaceId,
fileName
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
| fileName | [string] | The file name | defaults to undefined |
File
- Content-Type: Not defined
- Accept: application/octet-stream
| Status code | Description | Response headers |
|---|---|---|
| 200 | The workspace file as a resource | - |
| 404 | The Workspace file specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceSecurity getWorkspaceSecurity()
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
const { status, data } = await apiInstance.getWorkspaceSecurity(
organizationId,
workspaceId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
WorkspaceSecurity
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Workspace security | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listWorkspaceFiles()
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
const { status, data } = await apiInstance.listWorkspaceFiles(
organizationId,
workspaceId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The workspace files | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listWorkspaceRolePermissions()
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let role: string; //The Role (default to undefined)
const { status, data } = await apiInstance.listWorkspaceRolePermissions(
organizationId,
workspaceId,
role
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
| role | [string] | The Role | defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Workspace security permission list | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listWorkspaceSecurityUsers()
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
const { status, data } = await apiInstance.listWorkspaceSecurityUsers(
organizationId,
workspaceId
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Workspace security users list | - |
| 404 | The Workspace or the User specified is unknown or you don't have access to them | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listWorkspaces()
Retrieve a paginated list of all workspaces in an organization that the user has permission to view.
import {
WorkspaceApi,
Configuration
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let page: number; //Page number to query (first page is at index 0) (optional) (default to undefined)
let size: number; //Amount of result by page (optional) (default to undefined)
const { status, data } = await apiInstance.listWorkspaces(
organizationId,
page,
size
);| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | The Organization identifier | defaults to undefined |
| page | [number] | Page number to query (first page is at index 0) | (optional) defaults to undefined |
| size | [number] | Amount of result by page | (optional) defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The workspace details | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace updateWorkspace(workspaceUpdateRequest)
import {
WorkspaceApi,
Configuration,
WorkspaceUpdateRequest
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let workspaceUpdateRequest: WorkspaceUpdateRequest; //The new Workspace details. This endpoint can\'t be used to update security
const { status, data } = await apiInstance.updateWorkspace(
organizationId,
workspaceId,
workspaceUpdateRequest
);| Name | Type | Description | Notes |
|---|---|---|---|
| workspaceUpdateRequest | WorkspaceUpdateRequest | The new Workspace details. This endpoint can't be used to update security | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
Workspace
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The workspace details | - |
| 400 | Bad request | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceAccessControl updateWorkspaceAccessControl(workspaceRole)
import {
WorkspaceApi,
Configuration,
WorkspaceRole
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let identityId: string; //The User identifier (default to undefined)
let workspaceRole: WorkspaceRole; //The new Workspace Access Control
const { status, data } = await apiInstance.updateWorkspaceAccessControl(
organizationId,
workspaceId,
identityId,
workspaceRole
);| Name | Type | Description | Notes |
|---|---|---|---|
| workspaceRole | WorkspaceRole | The new Workspace Access Control | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
| identityId | [string] | The User identifier | defaults to undefined |
WorkspaceAccessControl
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 200 | The Workspace access | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkspaceSecurity updateWorkspaceDefaultSecurity(workspaceRole)
import {
WorkspaceApi,
Configuration,
WorkspaceRole
} from '@cosmotech/api-ts';
const configuration = new Configuration();
const apiInstance = new WorkspaceApi(configuration);
let organizationId: string; //The Organization identifier (default to undefined)
let workspaceId: string; //The Workspace identifier (default to undefined)
let workspaceRole: WorkspaceRole; //This change the workspace default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the workspace.
const { status, data } = await apiInstance.updateWorkspaceDefaultSecurity(
organizationId,
workspaceId,
workspaceRole
);| Name | Type | Description | Notes |
|---|---|---|---|
| workspaceRole | WorkspaceRole | This change the workspace default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the workspace. | |
| organizationId | [string] | The Organization identifier | defaults to undefined |
| workspaceId | [string] | The Workspace identifier | defaults to undefined |
WorkspaceSecurity
- Content-Type: application/json, application/yaml
- Accept: application/json, application/yaml
| Status code | Description | Response headers |
|---|---|---|
| 201 | The Workspace default visibility | - |
| 404 | The Workspace specified is unknown or you don't have access to it | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]