openapi: 3.1.0
info:
title: API Reference subpackage_actions subpackage_workspaces.subpackage_workspaces/members.subpackage_workspaces/members/bulk API
version: 1.0.0
servers:
- url: http://localhost:8000
tags:
- name: subpackage_workspaces.subpackage_workspaces/members.subpackage_workspaces/members/bulk
paths:
/api/workspaces/{id}/memberships/bulk/:
post:
operationId: post
summary: ✨ Bulk assign workspace members
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:
$ref: '#/components/schemas/workspaces_members_bulk_post_Response_200'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WorkspaceMemberBulkAssignRequest'
delete:
operationId: delete
summary: ✨ Bulk unassign workspace members
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/workspaces_members_bulk_delete_Response_200'
components:
schemas:
workspaces_members_bulk_delete_Response_200:
type: object
properties:
unassignments:
type: integer
title: workspaces_members_bulk_delete_Response_200
workspaces_members_bulk_post_Response_200:
type: object
properties:
assignments:
type: integer
title: workspaces_members_bulk_post_Response_200
WorkspaceMemberBulkAssignRequest:
type: object
properties:
all:
type: boolean
description: Apply to all workspace members
excluded:
type: array
items:
type: integer
description: Excluded user IDs
included:
type: array
items:
type: integer
description: Included user IDs
required:
- all
title: WorkspaceMemberBulkAssignRequest
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]"'