openapi: 3.1.0 info: title: API Reference subpackage_actions subpackage_projects.subpackage_projects/members API version: 1.0.0 servers: - url: http://localhost:8000 tags: - name: subpackage_projects.subpackage_projects/members paths: /api/projects/{id}/members/: post: operationId: add summary: ✨ Add project member description: "\n \"Label\n

\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n

\n
\nAdd a member to a specific project." tags: - subpackage_projects.subpackage_projects/members parameters: - name: id in: path required: true schema: type: integer - name: Authorization in: header 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]"
' required: true schema: type: string responses: '201': description: '' content: application/json: schema: $ref: '#/components/schemas/ProjectMember' requestBody: content: application/json: schema: $ref: '#/components/schemas/ProjectMemberRequest' delete: operationId: remove summary: ✨ Remove member from project description: "\n \"Label\n

\n This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n

\n
\nRemove a member from a specific project. Pass the member ID via the `user` query parameter. For backward compatibility, a JSON body with `user` is still accepted." tags: - subpackage_projects.subpackage_projects/members parameters: - name: id in: path required: true schema: type: integer - name: user in: query description: User ID to remove from the project. Optional for backward compatibility with DELETE body. required: false schema: type: integer - name: Authorization in: header 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]"
' required: true schema: type: string responses: '200': description: Successful response components: schemas: ProjectMemberRequest: type: object properties: user: type: integer required: - user title: ProjectMemberRequest ProjectMember: type: object properties: user: type: integer required: - user title: ProjectMember 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]"
'