Create a new instance workspace
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/instance/workspaces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company_id": 123
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/workspaces"
payload = {
"name": "<string>",
"company_id": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', company_id: 123})
};
fetch('https://paradigm.lighton.ai/api/v3/instance/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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",
"files_count": 123,
"user_role": "owner",
"used_storage": 123,
"company": {
"id": 123,
"name": "<string>"
}
}Workspaces
Create a new instance workspace
Create a new instance workspace.
POST
/
api
/
v3
/
instance
/
workspaces
Create a new instance workspace
curl --request POST \
--url https://paradigm.lighton.ai/api/v3/instance/workspaces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"company_id": 123
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/instance/workspaces"
payload = {
"name": "<string>",
"company_id": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', company_id: 123})
};
fetch('https://paradigm.lighton.ai/api/v3/instance/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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",
"files_count": 123,
"user_role": "owner",
"used_storage": 123,
"company": {
"id": 123,
"name": "<string>"
}
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Serializer for creating an instance workspace (shared, or public for the system company).
Response
Instance workspace created successfully
V3 Response serializer for instance-level workspace operations.