openapi: 3.1.0
info:
title: API Reference subpackage_actions subpackage_projects.subpackage_projects/members.subpackage_projects/members/bulk API
version: 1.0.0
servers:
- url: http://localhost:8000
tags:
- name: subpackage_projects.subpackage_projects/members.subpackage_projects/members/bulk
paths:
/api/projects/{id}/members/bulk/:
post:
operationId: post
summary: ✨ Bulk assign project 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/projects_members_bulk_post_Response_200'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectMemberBulkAssignRequest'
delete:
operationId: delete
summary: ✨ Bulk unassign project 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/projects_members_bulk_delete_Response_200'
components:
schemas:
projects_members_bulk_delete_Response_200:
type: object
properties:
unassignments:
type: integer
title: projects_members_bulk_delete_Response_200
projects_members_bulk_post_Response_200:
type: object
properties:
assignments:
type: integer
title: projects_members_bulk_post_Response_200
ProjectMemberBulkAssignRolesRequest:
type: object
properties:
role:
$ref: '#/components/schemas/Role9e7Enum'
description: 'Role
* `OW` - Owner
* `AD` - Administrator
* `MA` - Manager
* `RE` - Reviewer
* `AN` - Annotator
* `DI` - Deactivated
* `NO` - Not Activated'
user_id:
type: integer
description: User ID
required:
- role
- user_id
title: ProjectMemberBulkAssignRolesRequest
ProjectMemberBulkAssignRequest:
type: object
properties:
all:
type: boolean
description: Apply to all project members
excluded:
type: array
items:
type: integer
description: Excluded user IDs
included:
type: array
items:
type: integer
description: Included user IDs
roles:
type: array
items:
$ref: '#/components/schemas/ProjectMemberBulkAssignRolesRequest'
description: Member roles
required:
- all
title: ProjectMemberBulkAssignRequest
Role9e7Enum:
type: string
enum:
- OW
- AD
- MA
- RE
- AN
- DI
- 'NO'
description: '* `OW` - Owner
* `AD` - Administrator
* `MA` - Manager
* `RE` - Reviewer
* `AN` - Annotator
* `DI` - Deactivated
* `NO` - Not Activated'
title: Role9e7Enum
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]"'