Workspaces

✨ Bulk assign workspace members

Changed on
<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Assign workspace members in bulk.
post/api/workspaces/{id}/memberships/bulk/

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/api/workspaces/{id}/memberships/bulk/
  • Auth
    API key in header Authorization

Path parameters

idinteger required

Query parameters

filtersstring

Versioned JSON member-filter payload, the same one the organization members list accepts. Only when all=True. When advanced member filtering is enabled, do not also supply role, user_type, tags, or last-activity legacy filter parameters.

rolestring

Multiple values may be separated by commas. (comma-separated values)

searchstring

Search members by first name, last name, email, or an enabled optional member-list column. Only when all=True.

tagsstring

Multiple values may be separated by commas. (comma-separated values)

user__last_activity__gtestring

Filter user__last_activity by greater than or equal to

user__last_activity__ltestring

Filter user__last_activity by less than or equal to

user_typestring

Multiple values may be separated by commas. (comma-separated values)

Request body

allboolean required

Apply to all workspace members

excludedinteger[]

Excluded user IDs

includedinteger[]

Included user IDs

Response

assignmentsinteger

Changes

    • info

      added the new optional query request parameter filters

    • info

      added the new optional query request parameter role

    • info

      added the new optional query request parameter search

    • info

      added the new optional query request parameter tags

    • info

      added the new optional query request parameter user__last_activity__gte

    • info

      added the new optional query request parameter user__last_activity__lte

    • info

      added the new optional query request parameter user_type