Skip to main content
POST
/
api
/
v3
/
instance
/
workspaces
Create a new instance workspace
curl --request POST \
  --url https://paradigm-preprod.lighton.ai/api/v3/instance/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "company_id": 123
}
'
{
  "id": 123,
  "name": "<string>",
  "workspace_type": "<string>",
  "document_upload_method": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "user_role": "<string>",
  "used_storage": 123,
  "files_count": 123,
  "company": {
    "id": 123,
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

Serializer for creating an instance workspace (custom only).

name
string
required
Maximum string length: 100
company_id
integer
required
description
string
default:""
workspace_type
enum<string>
  • custom - custom
Available options:
custom
document_upload_method
enum<string>
  • manual - Manual
  • synced - Synced
Available options:
manual,
synced

Response

Instance workspace created successfully

V3 Response serializer for instance-level workspace operations.

id
integer
required
name
string
required
workspace_type
string
required
document_upload_method
string
required
description
string
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
user_role
string
required
used_storage
number<double>
required
files_count
integer
required
company
object
required