Workspaces

List workspaces

List the workspaces for the organization.

GET/organizations/{organizationId}/workspaces
Authorization
Path parameters
organizationId*string

The organization ID

Query parameters
Response

OK

Body
results*array of Workspace

List of results.

nextPageTokenstring

The token to fetch the next page of results. If empty, there are no more results to fetch.

Request
const response = await fetch('/organizations/{organizationId}/workspaces', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer jwt"
    },
});
const data = await response.json();
Response
{
  "results": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "organizationId": "123e4567-e89b-12d3-a456-426614174000",
      "status": "active",
      "name": "text",
      "description": "text",
      "dataPolicy": {
        "group": "eu-west-1",
        "regions": [
          {
            "region": "eu-west-1"
          }
        ],
        "piiStrategy": "default"
      },
      "createdAt": "2024-11-21T08:50:53.965Z",
      "updatedAt": "2024-11-21T08:50:53.965Z"
    }
  ],
  "nextPageToken": "text"
}

Create workspace

Create a workspace for the organization.

POST/organizations/{organizationId}/workspaces
Authorization
Path parameters
organizationId*string

The organization ID

Body
name*WorkspaceName (string)

The display name for the workspace

descriptionWorkspaceDescription (string)

The description for the workspace

dataPolicy*DataPolicy

The data storage policy for a resource.

Response

Created

Body
id*string (uuid)

Workspace ID.

organizationId*string (uuid)

ID of the organization this workspace is part of.

status*enum

Current status

active
name*WorkspaceName (string)

The display name for the workspace

descriptionWorkspaceDescription (string)

The description for the workspace

dataPolicy*DataPolicy

The data storage policy for a resource.

createdAt*string (date-time)

When the workspace was created.

updatedAt*string (date-time)

When the workspace was last updated.

Request
const response = await fetch('/organizations/{organizationId}/workspaces', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer jwt",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "name": "text",
      "dataPolicy": {
        "group": "eu-west-1",
        "regions": [
          {
            "region": "eu-west-1"
          }
        ]
      }
    }),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organizationId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "active",
  "name": "text",
  "description": "text",
  "dataPolicy": {
    "group": "eu-west-1",
    "regions": [
      {
        "region": "eu-west-1"
      }
    ],
    "piiStrategy": "default"
  },
  "createdAt": "2024-11-21T08:50:53.965Z",
  "updatedAt": "2024-11-21T08:50:53.965Z"
}

Get workspace

Get the workspace instance.

GET/organizations/{organizationId}/workspaces/{workspaceId}
Authorization
Path parameters
organizationId*string

The organization ID

Response

OK

Body
id*string (uuid)

Workspace ID.

organizationId*string (uuid)

ID of the organization this workspace is part of.

status*enum

Current status

active
name*WorkspaceName (string)

The display name for the workspace

descriptionWorkspaceDescription (string)

The description for the workspace

dataPolicy*DataPolicy

The data storage policy for a resource.

createdAt*string (date-time)

When the workspace was created.

updatedAt*string (date-time)

When the workspace was last updated.

Request
const response = await fetch('/organizations/{organizationId}/workspaces/{workspaceId}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer jwt"
    },
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organizationId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "active",
  "name": "text",
  "description": "text",
  "dataPolicy": {
    "group": "eu-west-1",
    "regions": [
      {
        "region": "eu-west-1"
      }
    ],
    "piiStrategy": "default"
  },
  "createdAt": "2024-11-21T08:50:53.965Z",
  "updatedAt": "2024-11-21T08:50:53.965Z"
}

Delete workspace

Delete a workspace from the organization.

DELETE/organizations/{organizationId}/workspaces/{workspaceId}
Authorization
Path parameters
organizationId*string

The organization ID

workspaceId*string (uuid)

The workspace ID

Response

Delete successful

Request
const response = await fetch('/organizations/{organizationId}/workspaces/{workspaceId}', {
    method: 'DELETE',
    headers: {
      "Authorization": "Bearer jwt"
    },
});
const data = await response.json();
Response
{
  "code": "text",
  "message": "text"
}

Update workspace

Update a workspace's properties.

PATCH/organizations/{organizationId}/workspaces/{workspaceId}
Authorization
Path parameters
organizationId*string

The organization ID

workspaceId*string (uuid)

The workspace ID

Body
nameWorkspaceName (string)

The display name for the workspace

descriptionWorkspaceDescription (string)

The description for the workspace

Response

OK

Body
id*string (uuid)

Workspace ID.

organizationId*string (uuid)

ID of the organization this workspace is part of.

status*enum

Current status

active
name*WorkspaceName (string)

The display name for the workspace

descriptionWorkspaceDescription (string)

The description for the workspace

dataPolicy*DataPolicy

The data storage policy for a resource.

createdAt*string (date-time)

When the workspace was created.

updatedAt*string (date-time)

When the workspace was last updated.

Request
const response = await fetch('/organizations/{organizationId}/workspaces/{workspaceId}', {
    method: 'PATCH',
    headers: {
      "Authorization": "Bearer jwt",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "organizationId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "active",
  "name": "text",
  "description": "text",
  "dataPolicy": {
    "group": "eu-west-1",
    "regions": [
      {
        "region": "eu-west-1"
      }
    ],
    "piiStrategy": "default"
  },
  "createdAt": "2024-11-21T08:50:53.965Z",
  "updatedAt": "2024-11-21T08:50:53.965Z"
}

Last updated