openapi: 3.1.0
info:
title: API Reference subpackage_actions subpackage_workspaces API
version: 1.0.0
servers:
- url: http://localhost:8000
tags:
- name: subpackage_workspaces
paths:
/api/workspaces/:
get:
operationId: list
summary: ✨ List workspaces
description: " \n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n \n
curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Workspace'
post:
operationId: create
summary: ✨ Create workspace
description: "\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n
\ncurl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'201':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/Workspace'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceRequest'
/api/workspaces/{id}/:
get:
operationId: get
summary: ✨ Get workspace
description: "\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n
\ncurl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/Workspace'
delete:
operationId: delete
summary: ✨ Delete workspace
description: "\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n
\ncurl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: Successful response
patch:
operationId: update
summary: ✨ Update workspace
description: "\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n
\ncurl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'
required: true
schema:
type: string
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/Workspace'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PatchedWorkspaceRequest'
components:
schemas:
WorkspaceRequest:
type: object
properties:
color:
type:
- string
- 'null'
description: Color
description:
type:
- string
- 'null'
description: Workspace description
is_archived:
type: boolean
description: Workspace is archived
is_personal:
type: boolean
description: Workspace is a personal user workspace
title:
type: string
description: Workspace Name
required:
- title
description: 'A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations'
title: WorkspaceRequest
PatchedWorkspaceRequest:
type: object
properties:
color:
type:
- string
- 'null'
description: Color
description:
type:
- string
- 'null'
description: Workspace description
is_archived:
type: boolean
description: Workspace is archived
is_personal:
type: boolean
description: Workspace is a personal user workspace
title:
type: string
description: Workspace Name
description: 'A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations'
title: PatchedWorkspaceRequest
Workspace:
type: object
properties:
color:
type:
- string
- 'null'
description: Color
created_by:
type: integer
created_by_user:
type: string
description:
type:
- string
- 'null'
description: Workspace description
id:
type: integer
is_archived:
type: boolean
description: Workspace is archived
is_personal:
type: boolean
description: Workspace is a personal user workspace
membership:
type: string
projects_count:
type:
- integer
- 'null'
title:
type: string
description: Workspace Name
required:
- created_by
- created_by_user
- id
- membership
- projects_count
- title
description: 'A ModelSerializer that takes additional arguments for
"fields", "omit" and "expand" in order to
control which fields are displayed, and whether to replace simple
values with complex, nested serializations'
title: Workspace
securitySchemes:
Token:
type: apiKey
in: header
name: Authorization
description: 'The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"'