Skip to main content

Create Workspace

Create a new workspace in the organization.

Quick Navigation

Endpoint

POST /api/v1/workspaces

Headers

HeaderRequiredDescription
AuthorizationYesBearer <access_token>
Content-TypeYesapplication/json

Request Body

{
"name": "Development Workspace",
"organization_id": 1,
"settings": {}
}

Response

Success (201)

{
"success": true,
"data": {
"workspace": {
"id": 2,
"name": "Development Workspace",
"slug": "development-workspace",
"organization_id": 1
},
"message": "Workspace created successfully"
},
"message": "Workspace created successfully"
}

Features

  • Workspace creation
  • Default role assignment
  • Settings configuration
  • Audit logging

Status

[WARNING] TODO: Not Implemented

This endpoint is defined in the router but the implementation logic is not yet complete.