Workspace
Create a workspace in an organization
Section titled “Create a workspace in an organization”POST /api/v1/organizations/{org_id}/workspaces
Creates the company and its workspace, which provisions in the background. The caller must be an owner or admin of the organization.
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string | Yes | Organization ID |
Request body
Section titled “Request body”application/json, required: CreateWorkspaceRequest
Workspace
| Field | Type | Required | Description |
|---|---|---|---|
discount_code | string | No | |
display_name | string | Yes | At most 100 characters. |
plan_id | string | Yes | |
starter | Starter | Yes |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
202 | Accepted | WorkspaceSummary |
400 | Bad Request | ErrorResponse |
401 | Unauthorized | ErrorResponse |
402 | Payment Required | InsufficientWalletResponse |
403 | Forbidden | ErrorResponse |
404 | Not Found | ErrorResponse |
422 | Unprocessable Entity | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
List the workspaces the authenticated user may enter
Section titled “List the workspaces the authenticated user may enter”GET /api/v1/workspaces
Authentication: BearerAuth.
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | array of WorkspaceSummary |
401 | Unauthorized | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Get a workspace the authenticated user may enter
Section titled “Get a workspace the authenticated user may enter”GET /api/v1/workspaces/{id}
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Workspace ID |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | WorkspaceSummary |
401 | Unauthorized | ErrorResponse |
404 | Not Found | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Provisioning status of a workspace
Section titled “Provisioning status of a workspace”GET /api/v1/workspaces/{id}/provisioning
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Workspace ID |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | ProvisioningStatus |
401 | Unauthorized | ErrorResponse |
404 | Not Found | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Retry a workspace’s failed provisioning now
Section titled “Retry a workspace’s failed provisioning now”POST /api/v1/workspaces/{id}/provisioning/retry
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Workspace ID |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
202 | Accepted | None |
401 | Unauthorized | ErrorResponse |
403 | Forbidden | ErrorResponse |
404 | Not Found | ErrorResponse |
409 | Conflict | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Part of Crewlet. Generated from the OpenAPI document of the API, version 0.1.0.